Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
5-50% speed up setTimeout() #4193
Main points are:
Benchmark results are the following:
node 0.8.12 + optimized timers.js from 0.9.2:
node 0.9.2 reproduces these results as well.
This issue is related only to some systems though.
Node's Date.now() performance gained ~15 times on my laptop after upgrading from Ubuntu 12.04 32 bit + PAE to Ubuntu 12.10 64 bit.
So this patch will usually give only 5-6% performance to the setTimeout, and only in some cases it will be 1.5x gain.
referenced this pull request
Mar 9, 2013
Yeah, this does make a pretty big impact on
Running tests and other benchmarks now. Will land if there aren't any other problems.
No discernible effect on http or net benchmarks. I was sort of hoping for some improvement there, since we do spend a lot of our time in