From: Jérôme Benoit Date: Mon, 18 Sep 2023 10:52:55 +0000 (+0200) Subject: fix: add missing file for external benchmark X-Git-Tag: v2.7.0~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=001be8c5f3f29ab9b0648a54154c9dccd22b5fec;p=poolifier.git fix: add missing file for external benchmark Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/versus-external-pools/utils.mjs b/benchmarks/versus-external-pools/utils.mjs new file mode 100644 index 00000000..3d26ea16 --- /dev/null +++ b/benchmarks/versus-external-pools/utils.mjs @@ -0,0 +1,9 @@ +export const executeAsyncFn = async fn => { + try { + await fn() + } catch (e) { + console.error(e) + // eslint-disable-next-line n/no-process-exit + process.exit(1) + } +}