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