X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmarks%2Fbenchmarks-utils.mjs;fp=benchmarks%2Fbenchmarks-utils.mjs;h=6c01efcb348fa7ae11faf07131a3ea4d307cde0a;hb=3a5027122ca6401ae1d755843b20f714c61e3240;hp=16a656107fc6f00973fe7bdc6541a6bab2794a2b;hpb=937d524da3a5cce4795b85ddd1c430f0d184f731;p=poolifier.git diff --git a/benchmarks/benchmarks-utils.mjs b/benchmarks/benchmarks-utils.mjs index 16a65610..6c01efcb 100644 --- a/benchmarks/benchmarks-utils.mjs +++ b/benchmarks/benchmarks-utils.mjs @@ -10,7 +10,7 @@ import { Measurements, PoolTypes, WorkerChoiceStrategies, - WorkerTypes + WorkerTypes, } from '../lib/index.mjs' import { executeTaskFunction } from './benchmarks-utils.cjs' @@ -80,13 +80,13 @@ export const runPoolifierBenchmarkTatamiNg = async ( async () => { await runPoolifierPool(pool, { taskExecutions, - workerData + workerData, }) }, { before: () => { pool.setWorkerChoiceStrategy(workerChoiceStrategy, { - measurement + measurement, }) pool.enableTasksQueue(enableTasksQueue) strictEqual( @@ -98,7 +98,7 @@ export const runPoolifierBenchmarkTatamiNg = async ( pool.opts.workerChoiceStrategyOptions.measurement, measurement ) - } + }, } ) }) @@ -112,7 +112,7 @@ export const runPoolifierBenchmarkTatamiNg = async ( async () => { await runPoolifierPool(pool, { taskExecutions, - workerData + workerData, }) }, { @@ -124,7 +124,7 @@ export const runPoolifierBenchmarkTatamiNg = async ( workerChoiceStrategy ) strictEqual(pool.opts.enableTasksQueue, enableTasksQueue) - } + }, } ) }) @@ -148,12 +148,12 @@ export const convertTatamiNgToBmf = report => { latency: { value: stats?.avg, lower_value: stats?.min, - upper_value: stats?.max + upper_value: stats?.max, }, throughput: { - value: stats?.iter - } - } + value: stats?.iter, + }, + }, } }) .reduce((obj, item) => Object.assign(obj, item), {})