summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-01-23 13:19:14 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-02-01 10:49:03 +0100
commitc713f079f1bd1c575487c693f3f9244bed460ee1 (patch)
tree72b9c35cdb204eedbeece711f21bb5df49ced697 /benchmark
parent1178670cca16a268162aaf39afeb933779988d22 (diff)
downloadnode-new-c713f079f1bd1c575487c693f3f9244bed460ee1.tar.gz
benchmark: (timers) refactor
PR-URL: https://github.com/nodejs/node/pull/18320 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/timers/set-immediate-breadth.js2
-rw-r--r--benchmark/timers/set-immediate-depth-args.js2
-rw-r--r--benchmark/timers/timers-cancel-pooled.js2
-rw-r--r--benchmark/timers/timers-cancel-unpooled.js2
-rw-r--r--benchmark/timers/timers-insert-unpooled.js2
5 files changed, 5 insertions, 5 deletions
diff --git a/benchmark/timers/set-immediate-breadth.js b/benchmark/timers/set-immediate-breadth.js
index a4b217b5bf..4f7d2cd276 100644
--- a/benchmark/timers/set-immediate-breadth.js
+++ b/benchmark/timers/set-immediate-breadth.js
@@ -9,7 +9,7 @@ function main({ millions }) {
const N = millions * 1e6;
process.on('exit', function() {
- bench.end(N / 1e6);
+ bench.end(millions);
});
function cb() {}
diff --git a/benchmark/timers/set-immediate-depth-args.js b/benchmark/timers/set-immediate-depth-args.js
index fe1340c4bd..aa5ec95f7d 100644
--- a/benchmark/timers/set-immediate-depth-args.js
+++ b/benchmark/timers/set-immediate-depth-args.js
@@ -9,7 +9,7 @@ function main({ millions }) {
const N = millions * 1e6;
process.on('exit', function() {
- bench.end(N / 1e6);
+ bench.end(millions);
});
function cb3(n, arg2, arg3) {
diff --git a/benchmark/timers/timers-cancel-pooled.js b/benchmark/timers/timers-cancel-pooled.js
index 33897507c8..3e262f820a 100644
--- a/benchmark/timers/timers-cancel-pooled.js
+++ b/benchmark/timers/timers-cancel-pooled.js
@@ -28,5 +28,5 @@ function main({ millions }) {
}
function cb() {
- assert(false, 'Timer should not call callback');
+ assert.fail('Timer should not call callback');
}
diff --git a/benchmark/timers/timers-cancel-unpooled.js b/benchmark/timers/timers-cancel-unpooled.js
index 57e0139dfe..1586673113 100644
--- a/benchmark/timers/timers-cancel-unpooled.js
+++ b/benchmark/timers/timers-cancel-unpooled.js
@@ -22,5 +22,5 @@ function main({ millions }) {
}
function cb() {
- assert(false, `Timer ${this._idleTimeout} should not call callback`);
+ assert.fail(`Timer ${this._idleTimeout} should not call callback`);
}
diff --git a/benchmark/timers/timers-insert-unpooled.js b/benchmark/timers/timers-insert-unpooled.js
index 5652663335..fbbeebb759 100644
--- a/benchmark/timers/timers-insert-unpooled.js
+++ b/benchmark/timers/timers-insert-unpooled.js
@@ -23,5 +23,5 @@ function main({ millions }) {
}
function cb() {
- assert(false, `Timer ${this._idleTimeout} should not call callback`);
+ assert.fail(`Timer ${this._idleTimeout} should not call callback`);
}