Permalink
Browse files

bench: start a worker for each CPU

  • Loading branch information...
1 parent 7535e39 commit 5ff2ae8389c8e4ea37709d02340f1b60c32f0737 @bnoordhuis bnoordhuis committed May 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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');
}

0 comments on commit 5ff2ae8

Please sign in to comment.