0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-21 13:09:21 +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: mark test-benchmark-crypto as flaky 2024-06-29 23:09:47 -07:00
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 util: lazy parse mime parameters 2023-10-08 15:43:16 +00:00
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 url: drop ICU requirement for parsing hostnames 2023-04-05 09:05:29 -07:00
test-benchmark-util.js
test-benchmark-v8.js
test-benchmark-validators.js lib: improve performance of validateStringArray and validateBooleanArray 2023-10-22 21:12:38 +00:00
test-benchmark-vm.js
test-benchmark-websocket.js benchmark: add undici websocket benchmark 2023-12-06 20:05:38 +00:00
test-benchmark-webstreams.js benchmark: include webstreams benchmark 2022-12-21 16:09:43 +00:00
test-benchmark-worker.js
test-benchmark-zlib.js
testcfg.py