]>
Piment Noir Git Repositories - poolifier.git/blob - benchmarks/internal/cluster/worker.js
2 const { ClusterWorker
} = require('../../../lib/index')
4 function yourFunction (data
) {
5 for (let i
= 0; i
<= 1000; i
++) {
11 // console.log('This is the main thread ' + isMaster)
15 module
.exports
= new ClusterWorker(yourFunction
)