0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-28 14:33:11 +01:00
nodejs/benchmark/timers
Anatoli Papirovski 0f9efef05d
timers: refactor timer list processing
Instead of using kOnTimeout index to track a special list
processing function, just pass in a function to C++ at
startup that executes all handles and determines which
function to call.

This change improves the performance of unpooled timeouts
by roughly 20%, as well as makes the unref/ref processing
easier to follow.

PR-URL: https://github.com/nodejs/node/pull/18582
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Vladimir de Turckheim <vlad2t@hotmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
2018-02-09 14:59:07 -05:00
..
immediate.js
set-immediate-breadth-args.js
set-immediate-breadth.js benchmark: (timers) refactor 2018-02-01 10:49:03 +01:00
set-immediate-depth-args.js benchmark: (timers) refactor 2018-02-01 10:49:03 +01:00
timers-breadth.js
timers-cancel-pooled.js benchmark: (timers) refactor 2018-02-01 10:49:03 +01:00
timers-cancel-unpooled.js benchmark: (timers) refactor 2018-02-01 10:49:03 +01:00
timers-depth.js
timers-insert-pooled.js
timers-insert-unpooled.js benchmark: (timers) refactor 2018-02-01 10:49:03 +01:00
timers-timeout-pooled.js
timers-timeout-unpooled.js timers: refactor timer list processing 2018-02-09 14:59:07 -05:00