02f777f7d0d95c170cdc0642cbe593b5d2066161
[poolifier.git] / benchmarks / versus-external-pools / workers / workerpool / function-to-bench-worker.js
1 'use strict'
2 const workerpool = require('workerpool')
3 const functionToBench = require('../../functions/function-to-bench')
4
5 function workerPoolWrapperFunctionToBench (testName, taskType) {
6 return functionToBench({ test: testName, taskType: taskType })
7 }
8
9 workerpool.worker({
10 functionToBench: workerPoolWrapperFunctionToBench
11 })