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): bump typescript
[poolifier.git]
/
benchmarks
/
versus-external-pools
/
fixed-piscina.mjs
diff --git
a/benchmarks/versus-external-pools/fixed-piscina.mjs
b/benchmarks/versus-external-pools/fixed-piscina.mjs
index f13b996a7aead8e3a2eeeecfee16cf06a59407de..5fe01b62aa4816e7a5a1e14bc6348d1facd5acfd 100644
(file)
--- a/
benchmarks/versus-external-pools/fixed-piscina.mjs
+++ b/
benchmarks/versus-external-pools/fixed-piscina.mjs
@@
-17,9
+17,9
@@
const piscina = new Piscina({
})
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
(piscina.run(data))
+ promises.
add
(piscina.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