diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2011-11-05 02:31:39 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2011-11-05 02:53:01 +0400 |
commit | 89014c9d4055803a4413de08e41983434eadfd3d (patch) | |
tree | 3fac26b64089cbeb8ebc3f082dd64711fa084458 /benchmark | |
parent | 1e3e6b7c15f39500d30d91846ad3621fb72aa91b (diff) |
bench: add http_simple cluster edition benchmark
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/http_simple_cluster.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/benchmark/http_simple_cluster.js b/benchmark/http_simple_cluster.js new file mode 100644 index 00000000000..b49ea400b7f --- /dev/null +++ b/benchmark/http_simple_cluster.js @@ -0,0 +1,8 @@ +var cluster = require('cluster'); +var os = require('os'); + +if (cluster.isMaster) { + for (var i = 0, n = os.cpus().length; i < n; ++i) cluster.fork(); +} else { + require(__dirname + '/http_simple.js'); +} |