summaryrefslogtreecommitdiff
path: root/benchmark/process/next-tick-exec.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/process/next-tick-exec.js')
-rw-r--r--benchmark/process/next-tick-exec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/process/next-tick-exec.js b/benchmark/process/next-tick-exec.js
index 12c9d4624a..a8897cd745 100644
--- a/benchmark/process/next-tick-exec.js
+++ b/benchmark/process/next-tick-exec.js
@@ -4,8 +4,8 @@ const bench = common.createBenchmark(main, {
millions: [5]
});
-function main(conf) {
- var n = +conf.millions * 1e6;
+function main({ millions }) {
+ var n = millions * 1e6;
bench.start();
for (var i = 0; i < n; i++) {
@@ -13,6 +13,6 @@ function main(conf) {
}
function onNextTick(i) {
if (i + 1 === n)
- bench.end(+conf.millions);
+ bench.end(millions);
}
}