repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
perf: export also JSON results with external pools benchmark
[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..9e016331ed86cd7d6f8a308b87c8e6d0b28fc135 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 './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
)