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
PR-URL: nodejs#50698
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
  • Loading branch information
Septa2112 authored and martenrichter committed Nov 26, 2023
1 parent 728e27d commit 66d98c2
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 66d98c2

Please sign in to comment.