When using --headless=new
in my tests they use way more CPU, compared to old headless mode.
Watching the task manager I noticed that even for one test it opens multiple Chrome instances. My tests need headless new to function but I can't run the whole feature because it kills my laptop.
Is there any way to optimize the CPU usage?
Using Serenity-BDD This is my setup for options:
chrome.switches=--headless=new;--disable-dev-shm-usage;--no-sandbox;--disable-download-notification;--test-type;--ignore-certificate-errors;--disable-popup-blocking;--disable-default-apps;--disable-extensions-file-access-check;--start-maximized;--incognito;--disable-infobars,--disable-gpu
headless.mode = true
, works fine with CPU but can't download files or right click and copy text
--headless=new
, kills the laptop, tests work while running them one by one