mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
4bb529d972
Apply strict mode to benchmark code. PR-URL: https://github.com/nodejs/node/pull/5336 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
11 lines
274 B
JavaScript
11 lines
274 B
JavaScript
'use strict';
|
|
var cluster = require('cluster');
|
|
var os = require('os');
|
|
|
|
if (cluster.isMaster) {
|
|
console.log('master running on pid %d', process.pid);
|
|
for (var i = 0, n = os.cpus().length; i < n; ++i) cluster.fork();
|
|
} else {
|
|
require(__dirname + '/http_simple.js');
|
|
}
|