GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — benchmark,tools: use os.availableParallelism() · nodejs/node@e1c56ec

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • benchmark
    • _http-benchmarkers.js
  • tools
    • build-addons.mjs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎benchmark/_http-benchmarkers.js‎

Copy file name to clipboardExpand all lines: benchmark/_http-benchmarkers.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class WrkBenchmarker {
6565
const args = [
6666
'-d', duration,
6767
'-c', options.connections,
68-
'-t', Math.min(options.connections, require('os').cpus().length || 8),
68+
'-t', Math.min(options.connections, require('os').availableParallelism() || 8),
6969
`${scheme}://127.0.0.1:${options.port}${options.path}`,
7070
];
7171
for (const field in options.headers) {
Collapse file

‎tools/build-addons.mjs‎

Copy file name to clipboardExpand all lines: tools/build-addons.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import os from 'node:os';
1111

1212
const execFile = util.promisify(child_process.execFile);
1313

14-
const parallelization = +process.env.JOBS || os.cpus().length;
14+
const parallelization = +process.env.JOBS || os.availableParallelism();
1515
const nodeGyp = process.argv[2];
1616
const directory = process.argv[3];
1717

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.