Add WRR worker choice strategy
[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
5function workerPoolWrapperFunctionToBench (testName, taskType) {
6 return functionToBench({ test: testName, taskType: taskType })
7}
8
9workerpool.worker({
10 functionToBench: workerPoolWrapperFunctionToBench
11})