repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(ci): silence linter
[poolifier.git]
/
benchmarks
/
benchmarks-utils.mjs
diff --git
a/benchmarks/benchmarks-utils.mjs
b/benchmarks/benchmarks-utils.mjs
index 16a656107fc6f00973fe7bdc6541a6bab2794a2b..6c01efcb348fa7ae11faf07131a3ea4d307cde0a 100644
(file)
--- a/
benchmarks/benchmarks-utils.mjs
+++ b/
benchmarks/benchmarks-utils.mjs
@@
-10,7
+10,7
@@
import {
Measurements,
PoolTypes,
WorkerChoiceStrategies,
Measurements,
PoolTypes,
WorkerChoiceStrategies,
- WorkerTypes
+ WorkerTypes
,
} from '../lib/index.mjs'
import { executeTaskFunction } from './benchmarks-utils.cjs'
} from '../lib/index.mjs'
import { executeTaskFunction } from './benchmarks-utils.cjs'
@@
-80,13
+80,13
@@
export const runPoolifierBenchmarkTatamiNg = async (
async () => {
await runPoolifierPool(pool, {
taskExecutions,
async () => {
await runPoolifierPool(pool, {
taskExecutions,
- workerData
+ workerData
,
})
},
{
before: () => {
pool.setWorkerChoiceStrategy(workerChoiceStrategy, {
})
},
{
before: () => {
pool.setWorkerChoiceStrategy(workerChoiceStrategy, {
- measurement
+ measurement
,
})
pool.enableTasksQueue(enableTasksQueue)
strictEqual(
})
pool.enableTasksQueue(enableTasksQueue)
strictEqual(
@@
-98,7
+98,7
@@
export const runPoolifierBenchmarkTatamiNg = async (
pool.opts.workerChoiceStrategyOptions.measurement,
measurement
)
pool.opts.workerChoiceStrategyOptions.measurement,
measurement
)
- }
+ }
,
}
)
})
}
)
})
@@
-112,7
+112,7
@@
export const runPoolifierBenchmarkTatamiNg = async (
async () => {
await runPoolifierPool(pool, {
taskExecutions,
async () => {
await runPoolifierPool(pool, {
taskExecutions,
- workerData
+ workerData
,
})
},
{
})
},
{
@@
-124,7
+124,7
@@
export const runPoolifierBenchmarkTatamiNg = async (
workerChoiceStrategy
)
strictEqual(pool.opts.enableTasksQueue, enableTasksQueue)
workerChoiceStrategy
)
strictEqual(pool.opts.enableTasksQueue, enableTasksQueue)
- }
+ }
,
}
)
})
}
)
})
@@
-148,12
+148,12
@@
export const convertTatamiNgToBmf = report => {
latency: {
value: stats?.avg,
lower_value: stats?.min,
latency: {
value: stats?.avg,
lower_value: stats?.min,
- upper_value: stats?.max
+ upper_value: stats?.max
,
},
throughput: {
},
throughput: {
- value: stats?.iter
- }
- }
+ value: stats?.iter
,
+ }
,
+ }
,
}
})
.reduce((obj, item) => Object.assign(obj, item), {})
}
})
.reduce((obj, item) => Object.assign(obj, item), {})