0235afface236f2e2492e669636d74df37770c81
2 const { isMaster
} = require('cluster')
3 const { ClusterWorker
} = require('../../../lib/index')
4 const { jsonIntegerSerialization
} = require('../benchmark-utils')
8 function yourFunction (data
) {
9 jsonIntegerSerialization(1000)
10 debug
=== true && console
.debug('This is the main thread ' + isMaster
)
14 module
.exports
= new ClusterWorker(yourFunction
)