fix: use same task timeout default as poolifier when possible
[poolifier.git] / benchmarks / versus-external-pools / fixed-tinypool.mjs
index c6e7c04996964aaf1c6f51940c698a336aff2ed1..9889a75667547dc4395ff274e6f574ad6d6b98d3 100644 (file)
@@ -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()