Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f018670

Browse filesBrowse files
BridgeARMylesBorins
authored andcommitted
benchmark: (timers) refactor
PR-URL: #18320 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 28156e1 commit f018670
Copy full SHA for f018670

File tree

Expand file treeCollapse file tree

5 files changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

5 files changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎benchmark/timers/set-immediate-breadth.js‎

Copy file name to clipboardExpand all lines: benchmark/timers/set-immediate-breadth.js
+1-1Lines changed: 1 addition & 1 deletion
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() {}
Collapse file

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

Copy file name to clipboardExpand all lines: benchmark/timers/set-immediate-depth-args.js
+1-1Lines changed: 1 addition & 1 deletion
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) {
Collapse file

‎benchmark/timers/timers-cancel-pooled.js‎

Copy file name to clipboardExpand all lines: benchmark/timers/timers-cancel-pooled.js
+1-1Lines changed: 1 addition & 1 deletion
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
}
Collapse file

‎benchmark/timers/timers-cancel-unpooled.js‎

Copy file name to clipboardExpand all lines: benchmark/timers/timers-cancel-unpooled.js
+1-1Lines changed: 1 addition & 1 deletion
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
}
Collapse file

‎benchmark/timers/timers-insert-unpooled.js‎

Copy file name to clipboardExpand all lines: benchmark/timers/timers-insert-unpooled.js
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.