repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): apply updates
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
dynamic-tinypool.mjs
diff --git
a/benchmarks/versus-external-pools/dynamic-tinypool.mjs
b/benchmarks/versus-external-pools/dynamic-tinypool.mjs
index acb8627f4f1e2f4ca1592d8aaa29b9f21a6d6160..c1de377230add86db85da551bfb98d2558957bcd 100644
(file)
--- a/
benchmarks/versus-external-pools/dynamic-tinypool.mjs
+++ b/
benchmarks/versus-external-pools/dynamic-tinypool.mjs
@@
-17,9
+17,9
@@
const tinypool = new Tinypool({
})
async function run () {
})
async function run () {
- const promises =
[]
+ const promises =
new Set()
for (let i = 0; i < iterations; i++) {
for (let i = 0; i < iterations; i++) {
- promises.
push
(tinypool.run(data))
+ promises.
add
(tinypool.run(data))
}
await Promise.all(promises)
// eslint-disable-next-line n/no-process-exit
}
await Promise.all(promises)
// eslint-disable-next-line n/no-process-exit