Merge branch 'master' into feature/task-functions
[poolifier.git] / benchmarks / versus-external-pools / dynamic-workerpool.mjs
index 2fb02d4b5e7c2b37b3beb592f8a5adf550bd42e9..0e09f1bb6bc286e3ce7013d21c373bda0f92578f 100644 (file)
@@ -1,6 +1,6 @@
-// IMPORT LIBRARIES
 import workerpool from 'workerpool'
-// FINISH IMPORT LIBRARIES
+import { executeAsyncFn } from '../benchmarks-utils.mjs'
+
 const size = parseInt(process.env.POOL_SIZE)
 const iterations = parseInt(process.env.NUM_ITERATIONS)
 const dataArray = [
@@ -28,4 +28,4 @@ async function run () {
   process.exit()
 }
 
-await run()
+await executeAsyncFn(run)