summaryrefslogtreecommitdiff
path: root/benchmark/_http-benchmarkers.js
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/_http-benchmarkers.js')
-rw-r--r--benchmark/_http-benchmarkers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/_http-benchmarkers.js b/benchmark/_http-benchmarkers.js
index ec0e80a9e7..e8c5ee7711 100644
--- a/benchmark/_http-benchmarkers.js
+++ b/benchmark/_http-benchmarkers.js
@@ -65,7 +65,7 @@ class WrkBenchmarker {
const args = [
'-d', duration,
'-c', options.connections,
- '-t', Math.min(options.connections, require('os').cpus().length || 8),
+ '-t', Math.min(options.connections, require('os').availableParallelism() || 8),
`${scheme}://127.0.0.1:${options.port}${options.path}`,
];
for (const field in options.headers) {