repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new Date().getTime() -> Date.now()
[poolifier.git]
/
benchmarks
/
internal
/
cluster
/
worker.js
diff --git
a/benchmarks/internal/cluster/worker.js
b/benchmarks/internal/cluster/worker.js
index 9817322c2870864d3b18537eae6952e50afe43e1..0235afface236f2e2492e669636d74df37770c81 100644
(file)
--- a/
benchmarks/internal/cluster/worker.js
+++ b/
benchmarks/internal/cluster/worker.js
@@
-1,10
+1,13
@@
'use strict'
'use strict'
+const { isMaster } = require('cluster')
const { ClusterWorker } = require('../../../lib/index')
const { jsonIntegerSerialization } = require('../benchmark-utils')
const { ClusterWorker } = require('../../../lib/index')
const { jsonIntegerSerialization } = require('../benchmark-utils')
+const debug = false
+
function yourFunction (data) {
jsonIntegerSerialization(1000)
function yourFunction (data) {
jsonIntegerSerialization(1000)
-
// console.lo
g('This is the main thread ' + isMaster)
+
debug === true && console.debu
g('This is the main thread ' + isMaster)
return { ok: 1 }
}
return { ok: 1 }
}