Skip to content

Commit f018670

Browse files
BridgeARMylesBorins
authored andcommitted
benchmark: (timers) refactor
PR-URL: #18320 Reviewed-By: James M Snell <[email protected]>
1 parent 28156e1 commit f018670

5 files changed

+5
-5
lines changed

benchmark/timers/set-immediate-breadth.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function main({ millions }) {
99
const N = millions * 1e6;
1010

1111
process.on('exit', function() {
12-
bench.end(N / 1e6);
12+
bench.end(millions);
1313
});
1414

1515
function cb() {}

benchmark/timers/set-immediate-depth-args.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function main({ millions }) {
99
const N = millions * 1e6;
1010

1111
process.on('exit', function() {
12-
bench.end(N / 1e6);
12+
bench.end(millions);
1313
});
1414

1515
function cb3(n, arg2, arg3) {

benchmark/timers/timers-cancel-pooled.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ function main({ millions }) {
2828
}
2929

3030
function cb() {
31-
assert(false, 'Timer should not call callback');
31+
assert.fail('Timer should not call callback');
3232
}

benchmark/timers/timers-cancel-unpooled.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ function main({ millions }) {
2222
}
2323

2424
function cb() {
25-
assert(false, `Timer ${this._idleTimeout} should not call callback`);
25+
assert.fail(`Timer ${this._idleTimeout} should not call callback`);
2626
}

benchmark/timers/timers-insert-unpooled.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ function main({ millions }) {
2323
}
2424

2525
function cb() {
26-
assert(false, `Timer ${this._idleTimeout} should not call callback`);
26+
assert.fail(`Timer ${this._idleTimeout} should not call callback`);
2727
}

0 commit comments

Comments
 (0)