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