Sha256: 690aef88a1ecda4b0c9ea71ee2fea79d8b33d823f3a09923af2906000e635dc2
Contents?: true
Size: 317 Bytes
Versions: 1
Compression:
Stored size: 317 Bytes
Contents
'use strict'; const cluster = require('cluster'); const os = require('os'); const path = require('path'); 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(path.join(__dirname, 'http_simple.js')); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
node-compiler-0.7.0 | vendor/node-v6.9.1/benchmark/http_simple_cluster.js |