summaryrefslogtreecommitdiff
path: root/benchmark/timers
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/timers')
-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`);
}