repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
chore: v2.6.9
[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.js'
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
})