X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fbenchmarks-utils.mjs;h=79971825e20e9e66c394b7b229eb6b4b5d852eaf;hb=41e3e08eb7fbcde0a69cea17e697aacb222990a6;hp=1d5ad24066d325b1a8ec37a84e4fc11f3de856c0;hpb=617848e3c52c702a4412b74d505ce6076e54a5bb;p=poolifier.git diff --git a/benchmarks/benchmarks-utils.mjs b/benchmarks/benchmarks-utils.mjs index 1d5ad240..79971825 100644 --- a/benchmarks/benchmarks-utils.mjs +++ b/benchmarks/benchmarks-utils.mjs @@ -100,7 +100,7 @@ export const runPoolifierPoolBenchmark = async ( Measurements.elu ]) { suite.add( - `${name}|${workerChoiceStrategy}|${measurement}|${ + `${name} with ${workerChoiceStrategy}, with ${measurement} and ${ enableTasksQueue ? 'with' : 'without' } tasks queue`, async () => { @@ -129,7 +129,7 @@ export const runPoolifierPoolBenchmark = async ( } } else { suite.add( - `${name}|${workerChoiceStrategy}|${ + `${name} with ${workerChoiceStrategy} and ${ enableTasksQueue ? 'with' : 'without' } tasks queue`, async () => { @@ -173,16 +173,6 @@ export const LIST_FORMATTER = new Intl.ListFormat('en-US', { type: 'conjunction' }) -export const executeAsyncFn = async fn => { - try { - await fn() - } catch (e) { - console.error(e) - // eslint-disable-next-line n/no-process-exit - process.exit(1) - } -} - export const generateRandomInteger = ( max = Number.MAX_SAFE_INTEGER, min = 0