Skip to content

Commit b186741

Browse files
BridgeARryzokuken
authored andcommitted
benchmark: (timers) refactor
PR-URL: nodejs#18320 Reviewed-By: James M Snell <[email protected]>
1 parent 8a97757 commit b186741

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

benchmark/timers/set-immediate-breadth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function main(conf) {
99
const N = +conf.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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function main(conf) {
99
const N = +conf.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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ function main(conf) {
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ function main(conf) {
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ function main(conf) {
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)