repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
refactor: ensure functions to bench are called properly
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
workers
/
workerpool
/
function-to-bench-worker.mjs
1
import workerpool from 'workerpool'
2
import functionToBench from '../../functions/function-to-bench.mjs'
3
4
function wrapperFunctionToBench (testName, taskType, taskSize) {
5
return functionToBench({
6
test: testName,
7
taskType,
8
taskSize
9
})
10
}
11
12
workerpool.worker({
13
functionToBench: wrapperFunctionToBench
14
})