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