You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The environment variable `NODEJS_BENCHMARK_ZERO_ALLOWED` is required
731
+
when tests execute so quickly that they may produce errors or inconsistent results.
732
+
Setting this variable instructs the benchmark to disregard such issues.
733
+
734
+
Test execution behavior depends on the `NODE_RUN_ALL_BENCH_TESTS` environment variable.
735
+
When set to **true**, benchmarks run with minimal iterations (`n=1`, `rounds=1`).
736
+
This approach bypasses performance analysis to verify that tests can complete without failures.
737
+
Despite the minimal iterations, execution remains time-consuming
738
+
as all configurations must be tested.
739
+
740
+
When `NODE_RUN_ALL_BENCH_TESTS` is not set,
741
+
only a single configuration per benchmark executes.
742
+
While this dramatically reduces execution time, it provides limited coverage
743
+
and cannot guarantee that all configurations function properly.
744
+
745
+
This PR introduces the usage of a new environment variable `NODE_RUN_ALL_BENCH_TESTS`, which can be set to run all benchmark configurations in tests to cover more scenarios where benchmarks might fail.
746
+
This PR also documents how to write benchmark tests and provides more details about the environment variables:
747
+
748
+
* NODE_RUN_ALL_BENCH_TESTS
749
+
* NODEJS_BENCHMARK_ZERO_ALLOWED
750
+
751
+
Benchmark tests were added for the following groups:
752
+
753
+
* abort_controller
754
+
* error
755
+
* https
756
+
* perf_hooks
757
+
* permission
758
+
* sqlite
759
+
* test_runner
760
+
* websocket
761
+
762
+
Additionally, some inconsistent test files were renamed:
0 commit comments