* @param {*} data The worker data.
* @returns {*} The result.
*/
-export default async function functionToBench (data) {
+export default function functionToBench (data) {
const TaskTypes = {
CPU_INTENSIVE: 'CPU_INTENSIVE',
IO_INTENSIVE: 'IO_INTENSIVE'
import workerpool from 'workerpool'
import functionToBench from '../../functions/function-to-bench.mjs'
-async function workerPoolWrapperFunctionToBench (testName, taskType, taskSize) {
- return await functionToBench({
+function wrapperFunctionToBench (testName, taskType, taskSize) {
+ return functionToBench({
test: testName,
taskType,
taskSize
}
workerpool.worker({
- functionToBench: workerPoolWrapperFunctionToBench
+ functionToBench: wrapperFunctionToBench
})