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 2ba08ac

Browse filesBrowse files
deokjinkimMoLow
authored andcommitted
benchmark: use cluster.isPrimary instead of cluster.isMaster
`cluster.isMaster` was deprecated. So need to use `cluster.isPrimary` for benchmark. Refs: #47981 PR-URL: #48002 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent ccd2795 commit 2ba08ac
Copy full SHA for 2ba08ac

File tree

Expand file treeCollapse file tree

2 files changed

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

2 files changed

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

‎benchmark/cluster/echo.js‎

Copy file name to clipboardExpand all lines: benchmark/cluster/echo.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const cluster = require('cluster');
4-
if (cluster.isMaster) {
4+
if (cluster.isPrimary) {
55
const common = require('../common.js');
66
const bench = common.createBenchmark(main, {
77
workers: [1],
Collapse file

‎benchmark/http/cluster.js‎

Copy file name to clipboardExpand all lines: benchmark/http/cluster.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const PORT = common.PORT;
44

55
const cluster = require('cluster');
66
let bench;
7-
if (cluster.isMaster) {
7+
if (cluster.isPrimary) {
88
bench = common.createBenchmark(main, {
99
// Unicode confuses ab on os x.
1010
type: ['bytes', 'buffer'],

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.