You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My first guess is that the currently used gn build flags are not the same as chrome uses in production, but just wanted to flag this before I start investigating.
The text was updated successfully, but these errors were encountered:
Could be, or it's just differences in V8 versions. They tweak their heuristics continually and micro benchmarks that complete in under a second are unlikely to reach a JIT steady state.
Noticed this too. This is really bad compared to Chrome. @Alloyed have you managed to investigate?
I've used simple for(i=0; i<100000000; i++) {let b = new Object()}
And it's around 2800ms for v8-cmake's d8 vs Chrome's 150ms
I had a look into the issue, and I realized that the TurboFan optimizing compiler of v8 is turned off. Here is my fix: #83
D8's performance now is similar to Chrome on my computer.
using this test on my local machine, with a locally built copy of d8.exe (on windows MSVC,
cmake --build . --config Release
):https://gist.github.com/Alloyed/cc525d0baf56697f856f389e35335b2b
Doing the same test in my locally installed copy of chrome:
https://jsfiddle.net/Lxtfun0b/
My first guess is that the currently used gn build flags are not the same as chrome uses in production, but just wanted to flag this before I start investigating.
The text was updated successfully, but these errors were encountered: