Skip to content

Commit 8369ca2

Browse files
committed
benchmark: calibrate test runner benchmarks
Use calibrated n values for the test runner mock-timers and test-only benchmarks. Reduce the test options benchmark configurations to keep the benchmark suite smaller. Signed-off-by: Luan Muniz <luan@luanmuniz.com.br>
1 parent 2c05d1e commit 8369ca2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎benchmark/test_runner/mock-timers.js‎

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

88
const bench = common.createBenchmark(main, {
9-
n: [1, 10, 100, 1000],
9+
n: [1000],
1010
mode: [
1111
'enable-empty-apis',
1212
'enable-setTimeout',

‎benchmark/test_runner/test-only.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 { test } = require('node:test');
77

88
const bench = common.createBenchmark(main, {
9-
n: [1, 10, 100, 1000],
9+
n: [10000],
1010
selected: [1],
1111
}, {
1212
// We don't want to test the reporter here.

0 commit comments

Comments
 (0)