refactor: cleanup benchmark code
[poolifier.git] / benchmarks / versus-external-pools / fixed-tinypool.mjs
index 07b3abe84a2cd258c26e2d4b3bc9f85bfd4f96ee..7063b5b957891f79496a83f65a7b83510cc314d2 100644 (file)
@@ -1,6 +1,6 @@
-// IMPORT LIBRARIES
 import Tinypool from 'tinypool'
-// FINISH IMPORT LIBRARIES
+import { executeAsyncFn } from '../benchmarks-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)