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