perf: export also JSON results with external pools benchmark
[poolifier.git] / benchmarks / versus-external-pools / fixed-workerpool.mjs
index 6e11c1454f69e3edf10cadc561c621498334be34..9e016331ed86cd7d6f8a308b87c8e6d0b28fc135 100644 (file)
@@ -1,6 +1,6 @@
-// IMPORT LIBRARIES
 import workerpool from 'workerpool'
-// FINISH IMPORT LIBRARIES
+import { executeAsyncFn } from './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)