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

Commit

Permalink
bench: add http_simple cluster edition benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Nov 4, 2011
1 parent 1e3e6b7 commit 89014c9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 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');
}

0 comments on commit 89014c9

Please sign in to comment.