-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
benchmark: add more thorough timers benchmarks #10925
benchmark: add more thorough timers benchmarks #10925
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
}); | ||
|
||
function main(conf) { | ||
var N = +conf.thousands * 1e3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exceedingly minor nit... why N
? I tend to dislike caps for variables that aren't const
f2ec826
to
d158547
Compare
ping again the rest @nodejs/benchmarking, do these look ok? |
d158547
to
c680d87
Compare
Refs: nodejs#9493 PR-URL: nodejs#10925 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
c680d87
to
c74e6fe
Compare
Oops, missed a variable rename, new Lint CI: https://ci.nodejs.org/job/node-test-linter/6685/ |
Refs: #9493
Adds some new benchmarks to test pooled and unpooled behavior of the insert, cancel, and timeout operations of Node timers.
This is missing an unpooled tests for timeout, since that is far more complex, and I would prefer to do it separately in all likelihood.
cc @misterdjules, @AndreasMadsen, @nodejs/benchmarking
(This patch was made live during https://www.twitch.tv/nodesource/v/117497395 if you'd like to see me working on this in retrospect. :P)
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
benchmark, timer