refactor: cleanup benchmark code
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 23 Jul 2023 17:11:07 +0000 (19:11 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 23 Jul 2023 17:11:07 +0000 (19:11 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
benchmarks/internal/bench.mjs

index 1fbcc5aa89b0aaf875c62818812cfc0767969f4e..205940c31dd6b000c2a21c18adfa7301cdcf359d 100644 (file)
@@ -39,12 +39,12 @@ for (const poolType of Object.values(PoolTypes)) {
     }
   }
 }
+
 const taskExecutions = 1
 const workerData = {
   function: WorkerFunctions.jsonIntegerSerialization,
   taskSize: 1000
 }
-
 const addPools = pools =>
   pools.map(([name, pool]) => {
     return add(name, async () => {
@@ -57,7 +57,6 @@ const addPools = pools =>
 
 const resultsFile = 'poolifier'
 const resultsFolder = 'benchmarks/internal/results'
-
 suite(
   'Poolifier',
   ...addPools(pools),