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
[Bug]: Dramatic performance drop with ESM since v14.0.0 #8650
Comments
I am able to reproduce. It looks like dynamic imports are much worse performing with the ESM loader compared to the CJS loader. I suggest we cache the dynamic imports on our side. |
Caching seems to help and the numbers go back down for me: #8652 Could anyone confirm? |
Checked patch on my environment. Still 30% slower than v13.7.0, but it way more better than last results.
|
On my machine, it's almost identical with Node 18:
|
…formance - ESM performance fixed by puppeteer team puppeteer/puppeteer#8650
Bug description
Steps to reproduce the problem:
For convenience, I created a https://github.com/feesler/puppeteer-perf package to test this issue.
Script will automatically download Chromium revision 982053 to discard possible difference in browser performance.
Temporary solution to fix performance for ESM packages:
Puppeteer version
14.0.0 - 15.3.1
Node.js version
16.15.1 - 18.2.0
npm version
8.1.4
What operating system are you seeing the problem on?
Windows
Relevant log output
The text was updated successfully, but these errors were encountered: