docs: update CHANGELOG.md
[poolifier.git] / benchmarks / versus-external-pools / dynamic-tinypool.mjs
index 68d73b67381f4c5a987221693a98fd84a5a1a28b..a28de9b59f7e8e1e03f6de4146a768b4a91c3ff6 100644 (file)
@@ -10,7 +10,7 @@ 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 * 3,
   idleTimeout: 60000 // this is the same as poolifier default
@@ -26,4 +26,4 @@ async function run () {
   process.exit()
 }
 
-run()
+await run()