Commit | Line | Data |
---|---|---|
144f78e0 JB |
1 | 'use strict' |
2 | const workerpool = require('workerpool') | |
3 | const functionToBench = require('../../functions/function-to-bench') | |
4 | ||
7a6a0a96 JB |
5 | function workerPoolWrapperFunctionToBench (testName, taskType, taskSize) { |
6 | return functionToBench({ | |
7 | test: testName, | |
8 | taskType, | |
9 | taskSize | |
10 | }) | |
144f78e0 JB |
11 | } |
12 | ||
13 | workerpool.worker({ | |
14 | functionToBench: workerPoolWrapperFunctionToBench | |
15 | }) |