X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Ffixed-tinypool.mjs;h=307ac3b53de2ef01355dd2c3ab80b800da95c40d;hb=f4d1dbd1592e24d7a09f35013c3e0f0762240254;hp=07b3abe84a2cd258c26e2d4b3bc9f85bfd4f96ee;hpb=1655b92eb1223501125f6cac2f83fc86fbc958ab;p=poolifier.git diff --git a/benchmarks/versus-external-pools/fixed-tinypool.mjs b/benchmarks/versus-external-pools/fixed-tinypool.mjs index 07b3abe8..307ac3b5 100644 --- a/benchmarks/versus-external-pools/fixed-tinypool.mjs +++ b/benchmarks/versus-external-pools/fixed-tinypool.mjs @@ -1,6 +1,6 @@ -// IMPORT LIBRARIES import Tinypool from 'tinypool' -// 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)