X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fversus-external-pools%2Ffixed-piscina.mjs;h=97150f5e07132b4f99388ad56d7ee87f8af0acf6;hb=1c25f937c2fd468cf1363b360d8f87aceaae6e9a;hp=5fe01b62aa4816e7a5a1e14bc6348d1facd5acfd;hpb=1655b92eb1223501125f6cac2f83fc86fbc958ab;p=poolifier.git diff --git a/benchmarks/versus-external-pools/fixed-piscina.mjs b/benchmarks/versus-external-pools/fixed-piscina.mjs index 5fe01b62..97150f5e 100644 --- a/benchmarks/versus-external-pools/fixed-piscina.mjs +++ b/benchmarks/versus-external-pools/fixed-piscina.mjs @@ -1,6 +1,6 @@ -// IMPORT LIBRARIES import Piscina from 'piscina' -// FINISH IMPORT LIBRARIES +import { executeAsyncFn } from '../benchmarks-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)