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
1 'use strict'
2 const workerpool = require('workerpool')
3 const functionToBench = require('../../functions/function-to-bench')
4
5 function workerPoolWrapperFunctionToBench (testName, taskType, taskSize) {
6 return functionToBench({
7 test: testName,
8 taskType,
9 taskSize
10 })
11 }
12
13 workerpool.worker({
14 functionToBench: workerPoolWrapperFunctionToBench
15 })