Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
bench: start a worker for each CPU
  • Loading branch information
bnoordhuis committed May 24, 2012
1 parent 7535e39 commit 5ff2ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/http_simple_cluster.js
Expand Up @@ -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.