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