summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2012-05-11 19:35:03 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2012-05-25 00:35:10 +0200
commit5ff2ae8389c8e4ea37709d02340f1b60c32f0737 (patch)
tree8d7bf45debeb295c71c4b2d2c85bec8fabadd720
parent7535e3930a6d78674fb163d62ab818f8cb924df1 (diff)
downloadnode-5ff2ae8389c8e4ea37709d02340f1b60c32f0737.tar.gz
bench: start a worker for each CPU
-rw-r--r--benchmark/http_simple_cluster.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/http_simple_cluster.js b/benchmark/http_simple_cluster.js
index ecc3169ad..9a886f2ee 100644
--- a/benchmark/http_simple_cluster.js
+++ b/benchmark/http_simple_cluster.js
@@ -3,7 +3,7 @@ var os = require('os');
if (cluster.isMaster) {
console.log('master running on pid %d', process.pid);
- for (var i = 1, n = os.cpus().length; i < n; ++i) cluster.fork();
+ for (var i = 0, n = os.cpus().length; i < n; ++i) cluster.fork();
} else {
require(__dirname + '/http_simple.js');
}