0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-28 14:33:11 +01:00
nodejs/test/benchmark
Michaël Zasso 1d35a066e7
src,test: ensure that V8 fast APIs are called
Adds a debug-only macro that can be used to track when a V8 fast API is
called. A map of counters is maintained in in thread-local storage and
an internal API can be called to get the total count associated with
a call id.
Specific tests are added and `crypto.timingSafeEqual` as well as
internal documentation are updated to show how to use the macro
and test fast API calls without running long loops.

PR-URL: https://github.com/nodejs/node/pull/54317
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2024-08-13 12:37:02 +00:00
..
benchmark.status
test-bechmark-readline.js
test-benchmark-assert.js
test-benchmark-async-hooks.js
test-benchmark-blob.js
test-benchmark-buffer.js
test-benchmark-child-process.js
test-benchmark-cluster.js
test-benchmark-crypto.js
test-benchmark-dgram.js
test-benchmark-dns.js
test-benchmark-domain.js
test-benchmark-es.js
test-benchmark-esm.js
test-benchmark-events.js
test-benchmark-fs.js
test-benchmark-http2.js
test-benchmark-http.js
test-benchmark-mime.js
test-benchmark-misc.js
test-benchmark-module.js
test-benchmark-napi.js src,test: ensure that V8 fast APIs are called 2024-08-13 12:37:02 +00:00
test-benchmark-net.js
test-benchmark-os.js
test-benchmark-path.js
test-benchmark-process.js
test-benchmark-querystring.js
test-benchmark-streams.js
test-benchmark-string_decoder.js
test-benchmark-timers.js
test-benchmark-tls.js
test-benchmark-url.js
test-benchmark-util.js
test-benchmark-v8.js
test-benchmark-validators.js
test-benchmark-vm.js
test-benchmark-websocket.js
test-benchmark-webstreams.js
test-benchmark-worker.js
test-benchmark-zlib.js
testcfg.py