repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: refine benchmark README.md
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
fixed-workerpool.mjs
diff --git
a/benchmarks/versus-external-pools/fixed-workerpool.mjs
b/benchmarks/versus-external-pools/fixed-workerpool.mjs
index 6e11c1454f69e3edf10cadc561c621498334be34..6387b84ee15defde50674d817fafb829a36819f5 100644
(file)
--- a/
benchmarks/versus-external-pools/fixed-workerpool.mjs
+++ b/
benchmarks/versus-external-pools/fixed-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
)