repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/task-functions' of github.com:poolifier/poolifier into feature...
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
dynamic-workerpool.mjs
diff --git
a/benchmarks/versus-external-pools/dynamic-workerpool.mjs
b/benchmarks/versus-external-pools/dynamic-workerpool.mjs
index 2fb02d4b5e7c2b37b3beb592f8a5adf550bd42e9..0e09f1bb6bc286e3ce7013d21c373bda0f92578f 100644
(file)
--- a/
benchmarks/versus-external-pools/dynamic-workerpool.mjs
+++ b/
benchmarks/versus-external-pools/dynamic-workerpool.mjs
@@
-1,6
+1,6
@@
-// IMPORT LIBRARIES
import workerpool from 'workerpool'
import workerpool from 'workerpool'
-// FINISH IMPORT LIBRARIES
+import { executeAsyncFn } from '../benchmarks-utils.mjs'
+
const size = parseInt(process.env.POOL_SIZE)
const iterations = parseInt(process.env.NUM_ITERATIONS)
const dataArray = [
const size = parseInt(process.env.POOL_SIZE)
const iterations = parseInt(process.env.NUM_ITERATIONS)
const dataArray = [
@@
-28,4
+28,4
@@
async function run () {
process.exit()
}
process.exit()
}
-await
run(
)
+await
executeAsyncFn(run
)