Merge pull request #1261 from poolifier/dependabot/npm_and_yarn/examples/typescript...
[poolifier.git] / benchmarks / benchmarks-utils.mjs
index 1d5ad24066d325b1a8ec37a84e4fc11f3de856c0..79971825e20e9e66c394b7b229eb6b4b5d852eaf 100644 (file)
@@ -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