repositories
/
poolifier.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
refactor: code cleanups
[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
const functionToBenchWrapper = (testName, taskType, taskSize) => {
5
return functionToBench({
6
test: testName,
7
taskType,
8
taskSize
9
})
10
}
11
12
workerpool.worker({
13
functionToBench: functionToBenchWrapper
14
})