X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=benchmarks%2Fversus-external-pools%2Fdynamic-workerpool.mjs;h=f3baa446e97c9e161aa9db4b1f3abf5ca84cc392;hb=3aa16da67d1de7ed79de0fa4eedccc9cc7f58a52;hp=2fb02d4b5e7c2b37b3beb592f8a5adf550bd42e9;hpb=1655b92eb1223501125f6cac2f83fc86fbc958ab;p=poolifier.git diff --git a/benchmarks/versus-external-pools/dynamic-workerpool.mjs b/benchmarks/versus-external-pools/dynamic-workerpool.mjs index 2fb02d4b..f3baa446 100644 --- a/benchmarks/versus-external-pools/dynamic-workerpool.mjs +++ b/benchmarks/versus-external-pools/dynamic-workerpool.mjs @@ -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)