fix: readd cpu speed computation but only if necessary
[poolifier.git] / benchmarks / benchmarks-utils.cjs
index 4dd1227b00b2362b393b47113e70a154aad6fe87..b4a0d9bd8dd518420330ea5700fe1972b6995027 100644 (file)
@@ -89,8 +89,8 @@ const runPoolifierPoolBenchmark = async (
 ) => {
   return await new Promise((resolve, reject) => {
     const pool = buildPoolifierPool(workerType, poolType, poolSize)
-    const suite = new Benchmark.Suite(name)
     try {
+      const suite = new Benchmark.Suite(name)
       for (const workerChoiceStrategy of Object.values(
         WorkerChoiceStrategies
       )) {