From 5ff2ae8389c8e4ea37709d02340f1b60c32f0737 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 11 May 2012 19:35:03 +0200 Subject: [PATCH] bench: start a worker for each CPU --- benchmark/http_simple_cluster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/http_simple_cluster.js b/benchmark/http_simple_cluster.js index ecc3169adb..9a886f2ee7 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'); }