Skip to content

Commit d8f7882

Browse files
committed
benchmark: calibrate test runner benchmarks
Use calibrated n values for the test runner hooks and options benchmarks. Reduce the test options benchmark configurations to keep the benchmark suite smaller. Signed-off-by: Luan Muniz <luan@luanmuniz.com.br>
1 parent 272efa5 commit d8f7882

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

benchmark/test_runner/hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const {
1313
} = require('node:test');
1414

1515
const bench = common.createBenchmark(main, {
16-
n: [1, 10, 100, 1000],
16+
n: [1000],
1717
hook: ['before', 'after', 'beforeEach', 'afterEach'],
1818
}, {
1919
// We don't want to test the reporter here.

benchmark/test_runner/test-options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const reporter = require('../fixtures/empty-test-reporter');
66
const { it } = require('node:test');
77

88
const bench = common.createBenchmark(main, {
9-
n: [1, 10, 100, 1000],
9+
n: [10000],
1010
option: [
1111
'none',
1212
'skip',

0 commit comments

Comments
 (0)