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
There is a lot of funny business with benchmarking node programs due to V8's very clever GC and recompilation behavior. To work around this, I suggest running each test several times so that the total runtime ends up being around a minute per type of test. Varying the order might also yield different results.
An added benefit of smoothing out the variance by running longer is that you can capture some stacks with DTrace and see where the time is actually going.
The text was updated successfully, but these errors were encountered:
For a start, I’ve modified the code to use buffers instead of strings. That little change has made quite a bit of difference in the GC interference. Running the benchmarks with —trace_gc reveals that it barely runs the GC during the benchmarks.
I do like the idea of running vFlame and dTrace to get more insights into where its spending the most time.
There is a lot of funny business with benchmarking node programs due to V8's very clever GC and recompilation behavior. To work around this, I suggest running each test several times so that the total runtime ends up being around a minute per type of test. Varying the order might also yield different results.
An added benefit of smoothing out the variance by running longer is that you can capture some stacks with DTrace and see where the time is actually going.
The text was updated successfully, but these errors were encountered: