-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance enhancement #87
Comments
Yeah, the memory use is huge while starting the browser. Smaller VPS instances sometimes hang. |
Thanks for reporting. I ran a few tests in Docker with Playwright under the following websites:
There does seem to be a memory difference. This could either be caused by some of Playwright's config tweaks being undone to prevent detection (for example, fission and web content isolation is enabled in Camoufox to prevent WAF suspicion). uBlock Origin also seems to cause a bit of a memory issue, but it helps alleviate the memory usage in some cases like yahoo.com. However, Camoufox is also configured with memory-saving tweaks like dropping a page's memory cache as soon as the page is left or tab is discarded, which should prevent the memory from going up exponentially when navigating through several pages. I will look into what else that can be killed/stripped from Firefox to help the memory that won't be noticeable through JS inspection. |
I �faced the same issue. The problem I'm facing is that when performing JS based scroll down on pages with many image resources, While monitoring, |
I think this setting imported from Fastfox is causing the issue: defaultPref("image.mem.decode_bytes_at_a_time", 32768) Try setting it to |
Didn't mean to close this issue, GitHub saw "fixes #87" in the commit message as a signal to close |
Has the latest version been improved? |
The latest version should be out within the next day. 👍 |
Out of curiosity how are you measuring the memory usage. And do you have a script available? I seem to be getting much higher results. |
@NCGSolutions I have made my memory benchmark available under the scripts/benchmark directory. It takes the average memory usage over 10 seconds on about:black, Google, and Yahoo. |
1: Starting the browser every time is much slower than the normal playwright tool.2. I hope to speed up the startup.3: The memory usage is quite large, three or four hundred, and the headless mode is two or three hundred. The normal browser is only over one hundred.
The text was updated successfully, but these errors were encountered: