-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Investigate performance issue with esbuild.transformSync in bun #1879
Comments
cc @evanw (not asking you to do any work) |
Do you implement |
Not yet. That explains it. |
Fixed by @dylan-conway in #901 Speeds are roughly the same, though the p99 implies Bun is cloning some data an extra time unnecessarily. ❯ node transpiler.mjs
cpu: AMD Ryzen 5 3600 6-Core Processor
runtime: node v20.5.0 (x64-linux)
benchmark time (avg) (min … max) p75 p99 p995
------------------------------------------------- -----------------------------
• transformSync (11 KB jsx file)
------------------------------------------------- -----------------------------
esbuild 1.87 ms/iter (1.33 ms … 2.47 ms) 1.98 ms 2.42 ms 2.45 ms ❯ bun transpiler.mjs
cpu: AMD Ryzen 5 3600 6-Core Processor
runtime: bun 0.7.2 (x64-linux)
benchmark time (avg) (min … max) p75 p99 p995
------------------------------------------------- -----------------------------
• transformSync (11 KB jsx file)
------------------------------------------------- -----------------------------
esbuild 1.83 ms/iter (1.16 ms … 3.12 ms) 2.03 ms 2.86 ms 3.05 ms |
bench/snippets/transpiler.mjs in Bun:
In Node.js:
The text was updated successfully, but these errors were encountered: