Improve benchmarks: add IO intensive task workload, add task size option, integrate...
[poolifier.git] / benchmarks / versus-external-pools / workers / workerpool / function-to-bench-worker.js
CommitLineData
144f78e0
JB
1'use strict'
2const workerpool = require('workerpool')
3const functionToBench = require('../../functions/function-to-bench')
4
7a6a0a96
JB
5function workerPoolWrapperFunctionToBench (testName, taskType, taskSize) {
6 return functionToBench({
7 test: testName,
8 taskType,
9 taskSize
10 })
144f78e0
JB
11}
12
13workerpool.worker({
14 functionToBench: workerPoolWrapperFunctionToBench
15})