repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: use same task timeout default as poolifier when possible
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
fixed-tinypool.mjs
diff --git
a/benchmarks/versus-external-pools/fixed-tinypool.mjs
b/benchmarks/versus-external-pools/fixed-tinypool.mjs
index c6e7c04996964aaf1c6f51940c698a336aff2ed1..9889a75667547dc4395ff274e6f574ad6d6b98d3 100644
(file)
--- a/
benchmarks/versus-external-pools/fixed-tinypool.mjs
+++ b/
benchmarks/versus-external-pools/fixed-tinypool.mjs
@@
-10,15
+10,12
@@
const data = {
}
const tinypool = new Tinypool({
}
const tinypool = new Tinypool({
- filename: './workers/tinypool/function-to-bench-worker.js',
+ filename: './workers/tinypool/function-to-bench-worker.
m
js',
minThreads: size,
maxThreads: size,
idleTimeout: 60000 // this is the same as poolifier default
})
minThreads: size,
maxThreads: size,
idleTimeout: 60000 // this is the same as poolifier default
})
-/**
- *
- */
async function run () {
const promises = []
for (let i = 0; i < iterations; i++) {
async function run () {
const promises = []
for (let i = 0; i < iterations; i++) {
@@
-29,4
+26,4
@@
async function run () {
process.exit()
}
process.exit()
}
-run()
+
await
run()