benchmark: update iterations in benchmark/perf_hooks

Fixes: https://github.com/nodejs/node/issues/50571
PR-URL: https://github.com/nodejs/node/pull/50869
Refs: https://github.com/nodejs/node/issues/50571
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Lei Shi 2023-12-10 16:49:52 +08:00 committed by GitHub
parent 1045f287b8
commit 3b758b3287
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -13,7 +13,7 @@ function randomFn() {
}
const bench = common.createBenchmark(main, {
n: [1e5],
n: [1e6],
pending: [1, 10],
}, {
options: ['--expose-internals'],

View file

@ -50,7 +50,7 @@ function createTimingInfo({
}
const bench = common.createBenchmark(main, {
n: [1e5],
n: [1e6],
observe: ['resource'],
});

View file

@ -13,7 +13,7 @@ function randomFn() {
}
const bench = common.createBenchmark(main, {
n: [1e5],
n: [1e6],
observe: ['function'],
});

View file

@ -8,7 +8,7 @@ const {
} = require('perf_hooks');
const bench = common.createBenchmark(main, {
n: [1e5],
n: [1e6],
observe: ['all', 'measure'],
});