Merge branch 'master' into feature/task-functions
[poolifier.git] / benchmarks / versus-external-pools / dynamic-piscina.mjs
index ddda47e75138f6157b973af4049d382f497a397f..3f56a69907bc31dadc0db60bec85d43aa1ca2878 100644 (file)
@@ -1,6 +1,6 @@
-// IMPORT LIBRARIES
 import Piscina from 'piscina'
-// 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)