0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/benchmark/misc
cjihrig ff8db70bc2
benchmark: add common.binding()
Recently, process.binding() was replaced with internalBinding().
However, internalBinding() is not available on older builds of
Node, which are often used for benchmarking purposes. This commit
adds a common.binding() to the benchmarks to work around the
issue. Hopefully, this can be removed in the not too distant
future.

PR-URL: https://github.com/nodejs/node/pull/23460
Fixes: https://github.com/nodejs/node/issues/23436
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2018-10-14 13:23:16 -04:00
..
arguments.js benchmark: refactor console benchmark 2017-12-20 01:33:50 -03:00
freelist.js async_hooks: add missing async_hooks destroys in AsyncReset 2018-10-10 08:45:56 +02:00
object-property-bench.js benchmark: changed millions and thousands to n 2018-04-10 00:22:33 +02:00
punycode.js benchmark: add common.binding() 2018-10-14 13:23:16 -04:00
startup.js benchmark: (misc) use destructuring 2018-01-23 01:29:27 +01:00
trace.js benchmark: add common.binding() 2018-10-14 13:23:16 -04:00
util-extend-vs-object-assign.js test: run misc benchmark only once in tests 2018-06-19 10:37:36 -07:00