Report some code cleanups from work in progress PR
[poolifier.git] / benchmarks / internal / cluster / worker.js
CommitLineData
57df5469 1'use strict'
be0676b3 2const { ClusterWorker } = require('../../../lib/index')
bdacc2d2 3const { jsonIntegerSerialization } = require('../benchmark-utils')
57df5469 4
106744f7 5function yourFunction (data) {
bdacc2d2 6 jsonIntegerSerialization(1000)
ff5e76e1 7 // console.log('This is the main thread ' + isMaster)
106744f7 8 return { ok: 1 }
9}
10
325f50bc 11module.exports = new ClusterWorker(yourFunction)