node/test/benchmark
James M Snell 8caa1dcee6 test: rely less on duplicative common test harness utilities
There are several cleanups here that are not just style nits...

1. The `common.isMainThread` was just a passthrough to the
   `isMainThread` export on the worker_thread module. It's
   use was inconsistent and just obfuscated the fact that
   the test file depend on the `worker_threads` built-in.
   By eliminating it we simplify the test harness a bit and
   make it clearer which tests depend on the worker_threads
   check.
2. The `common.isDumbTerminal` is fairly unnecesary since
   that just wraps a public API check.
3. Several of the `common.skipIf....` checks were inconsistently
   used and really don't need to be separate utility functions.

A key part of the motivation here is to work towards making more
of the tests more self-contained and less reliant on the common
test harness where possible.

PR-URL: https://github.com/nodejs/node/pull/56712
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2025-01-25 07:23:09 +00:00
..
benchmark.status test: mark test-benchmark-crypto as flaky 2024-06-29 23:09:47 -07:00
test-bechmark-readline.js lib: performance improvement on readline async iterator 2022-10-24 12:49:16 +00:00
test-benchmark-assert.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-async-hooks.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-blob.js benchmark: add blob benchmark 2022-10-17 12:00:31 +00:00
test-benchmark-buffer.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-child-process.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-cluster.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-crypto.js test: move crypto related common utilities in common/crypto 2025-01-25 00:58:32 +00:00
test-benchmark-dgram.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-dns.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-domain.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-es.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-esm.js module: use Wasm CJS lexer when available 2020-10-12 04:24:41 -07:00
test-benchmark-events.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-fs.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-http2.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-http.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-mime.js util: lazy parse mime parameters 2023-10-08 15:43:16 +00:00
test-benchmark-misc.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-module.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-napi.js test: rely less on duplicative common test harness utilities 2025-01-25 07:23:09 +00:00
test-benchmark-net.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-os.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-path.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-process.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-querystring.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-streams.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-string_decoder.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-timers.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-tls.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-url.js url: drop ICU requirement for parsing hostnames 2023-04-05 09:05:29 -07:00
test-benchmark-util.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-v8.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-validators.js lib: improve performance of validateStringArray and validateBooleanArray 2023-10-22 21:12:38 +00:00
test-benchmark-vm.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
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: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
test-benchmark-zlib.js test: refactor all benchmark tests to use the new test option 2020-03-09 22:35:54 +01:00
testcfg.py