0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/benchmark/events
Brian White 4c9dd6822e
events: improve once() performance
This commit takes advantage of the performance improvements V8 has
made to function.bind() in V8 5.4 and uses it to avoid constant
recompilation/reoptimization of the wrapper closure used in once().
This change results in ~27% performance increase for once().

PR-URL: https://github.com/nodejs/node/pull/10445
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2016-12-28 21:23:25 -05:00
..
ee-add-remove.js benchmark: refactor to eliminate redeclared vars 2016-03-01 13:48:42 -08:00
ee-emit-multi-args.js tools,benchmark: increase lint compliance 2016-02-27 20:15:17 -08:00
ee-emit.js benchmark: use strict mode 2016-02-22 11:09:26 -08:00
ee-listener-count-on-prototype.js tools,benchmark: increase lint compliance 2016-02-27 20:15:17 -08:00
ee-listeners-many.js tools,benchmark: increase lint compliance 2016-02-27 20:15:17 -08:00
ee-listeners.js tools,benchmark: increase lint compliance 2016-02-27 20:15:17 -08:00
ee-once.js events: improve once() performance 2016-12-28 21:23:25 -05:00