Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2011-11-05 02:31:39 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2011-11-05 02:53:01 +0400
commit89014c9d4055803a4413de08e41983434eadfd3d (patch)
tree3fac26b64089cbeb8ebc3f082dd64711fa084458 /benchmark
parent1e3e6b7c15f39500d30d91846ad3621fb72aa91b (diff)
bench: add http_simple cluster edition benchmark
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/http_simple_cluster.js8
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');
+}