Skip to content

Commit cb87667

Browse files
committed
benchmark: calibrate util.splice-one
According to nodejs/performance#186 this benchmark takes 2.12 minutes to run a single run. So using calibrate-n script it suggests reduce it from 5e6 to 1e3
1 parent 1dc23b8 commit cb87667

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

benchmark/util/splice-one.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
const common = require('../common');
44

5-
const bench = common.createBenchmark(main, {
6-
n: [5e6],
7-
pos: ['start', 'middle', 'end'],
8-
size: [10, 100, 500],
9-
}, { flags: ['--expose-internals'] });
5+
const bench = common.createBenchmark(
6+
main,
7+
{
8+
n: [1000],
9+
pos: ['start', 'middle', 'end'],
10+
size: [10, 100, 500],
11+
},
12+
{ flags: ['--expose-internals'] },
13+
);
1014

1115
function main({ n, pos, size }) {
1216
const { spliceOne } = require('internal/util');

0 commit comments

Comments
 (0)