summaryrefslogtreecommitdiff
path: root/benchmark/timers/timers-insert-pooled.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/timers/timers-insert-pooled.js')
-rw-r--r--benchmark/timers/timers-insert-pooled.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/benchmark/timers/timers-insert-pooled.js b/benchmark/timers/timers-insert-pooled.js
index 59d2c490c3..a7441a9eaf 100644
--- a/benchmark/timers/timers-insert-pooled.js
+++ b/benchmark/timers/timers-insert-pooled.js
@@ -2,17 +2,16 @@
const common = require('../common.js');
const bench = common.createBenchmark(main, {
- millions: [5],
+ n: [5e6],
});
-function main({ millions }) {
- const iterations = millions * 1e6;
+function main({ n }) {
bench.start();
- for (var i = 0; i < iterations; i++) {
+ for (var i = 0; i < n; i++) {
setTimeout(() => {}, 1);
}
- bench.end(iterations / 1e6);
+ bench.end(n);
}