Skip to content

Commit

Permalink
benchmark: update iterations in benchmark/util/splice-one.js
Browse files Browse the repository at this point in the history
Increase the number of iterations from 1e5 to 5e6
to avoid the test performance gap caused by inactive
V8 optimization caused by insufficient number of iterations

Refs: nodejs#50571
  • Loading branch information
Septa2112 committed Nov 13, 2023
1 parent 5e250bd commit a13bb22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/util/splice-one.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const common = require('../common');

const bench = common.createBenchmark(main, {
n: [1e5],
n: [5e6],
pos: ['start', 'middle', 'end'],
size: [10, 100, 500],
}, { flags: ['--expose-internals'] });
Expand Down

0 comments on commit a13bb22

Please sign in to comment.