docs: update benchmark versus external pools results
[poolifier.git] / benchmarks / versus-external-pools / dynamic-tinypool.mjs
index c1de377230add86db85da551bfb98d2558957bcd..3c00b134c50d95dbcc921d668556cb3137578955 100644 (file)
@@ -1,6 +1,6 @@
-// IMPORT LIBRARIES
 import Tinypool from 'tinypool'
-// FINISH IMPORT LIBRARIES
+import { executeAsyncFn } from './utils.mjs'
+
 const size = parseInt(process.env.POOL_SIZE)
 const iterations = parseInt(process.env.NUM_ITERATIONS)
 const data = {
@@ -26,4 +26,4 @@ async function run () {
   process.exit()
 }
 
-await run()
+await executeAsyncFn(run)