From a13bb226400aa1af134b09f75bed814369d4ddd6 Mon Sep 17 00:00:00 2001 From: Jia Liu Date: Tue, 14 Nov 2023 00:47:37 +0800 Subject: [PATCH] benchmark: update iterations in benchmark/util/splice-one.js 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: https://github.com/nodejs/node/issues/50571 --- benchmark/util/splice-one.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/util/splice-one.js b/benchmark/util/splice-one.js index 6a5a634640add4..211e4fad571835 100644 --- a/benchmark/util/splice-one.js +++ b/benchmark/util/splice-one.js @@ -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'] });