summaryrefslogtreecommitdiff
path: root/benchmark/process/next-tick-depth-args.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/process/next-tick-depth-args.js')
-rw-r--r--benchmark/process/next-tick-depth-args.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/benchmark/process/next-tick-depth-args.js b/benchmark/process/next-tick-depth-args.js
index de792b303c..1c1b95bdc8 100644
--- a/benchmark/process/next-tick-depth-args.js
+++ b/benchmark/process/next-tick-depth-args.js
@@ -7,8 +7,8 @@ const bench = common.createBenchmark(main, {
process.maxTickDepth = Infinity;
-function main(conf) {
- var n = +conf.millions * 1e6;
+function main({ millions }) {
+ var n = millions * 1e6;
function cb4(arg1, arg2, arg3, arg4) {
if (--n) {
@@ -21,7 +21,7 @@ function main(conf) {
else
process.nextTick(cb1, 0);
} else
- bench.end(+conf.millions);
+ bench.end(millions);
}
function cb3(arg1, arg2, arg3) {
if (--n) {
@@ -34,7 +34,7 @@ function main(conf) {
else
process.nextTick(cb1, 0);
} else
- bench.end(+conf.millions);
+ bench.end(millions);
}
function cb2(arg1, arg2) {
if (--n) {
@@ -47,7 +47,7 @@ function main(conf) {
else
process.nextTick(cb1, 0);
} else
- bench.end(+conf.millions);
+ bench.end(millions);
}
function cb1(arg1) {
if (--n) {
@@ -60,7 +60,7 @@ function main(conf) {
else
process.nextTick(cb1, 0);
} else
- bench.end(+conf.millions);
+ bench.end(millions);
}
bench.start();
process.nextTick(cb1, true);