X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=benchmarks%2Fversus-external-pools%2Ffixed-tinypool.mjs;h=9889a75667547dc4395ff274e6f574ad6d6b98d3;hb=ae55bb0ecb73cd5cf8d4d5bc62a145e0476aec38;hp=c6e7c04996964aaf1c6f51940c698a336aff2ed1;hpb=6bb19f6bf0e0d262e46fa60324990135404e6d0d;p=poolifier.git diff --git a/benchmarks/versus-external-pools/fixed-tinypool.mjs b/benchmarks/versus-external-pools/fixed-tinypool.mjs index c6e7c049..9889a756 100644 --- 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({ - filename: './workers/tinypool/function-to-bench-worker.js', + filename: './workers/tinypool/function-to-bench-worker.mjs', 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++) { @@ -29,4 +26,4 @@ async function run () { process.exit() } -run() +await run()