repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): bump @typescript-eslint/eslint-plugin
[poolifier.git]
/
benchmarks
/
benchmarks-utils.mjs
diff --git
a/benchmarks/benchmarks-utils.mjs
b/benchmarks/benchmarks-utils.mjs
index 1d5ad24066d325b1a8ec37a84e4fc11f3de856c0..79971825e20e9e66c394b7b229eb6b4b5d852eaf 100644
(file)
--- a/
benchmarks/benchmarks-utils.mjs
+++ b/
benchmarks/benchmarks-utils.mjs
@@
-100,7
+100,7
@@
export const runPoolifierPoolBenchmark = async (
Measurements.elu
]) {
suite.add(
Measurements.elu
]) {
suite.add(
- `${name}
|${workerChoiceStrategy}|${measurement}|
${
+ `${name}
with ${workerChoiceStrategy}, with ${measurement} and
${
enableTasksQueue ? 'with' : 'without'
} tasks queue`,
async () => {
enableTasksQueue ? 'with' : 'without'
} tasks queue`,
async () => {
@@
-129,7
+129,7
@@
export const runPoolifierPoolBenchmark = async (
}
} else {
suite.add(
}
} else {
suite.add(
- `${name}
|${workerChoiceStrategy}|
${
+ `${name}
with ${workerChoiceStrategy} and
${
enableTasksQueue ? 'with' : 'without'
} tasks queue`,
async () => {
enableTasksQueue ? 'with' : 'without'
} tasks queue`,
async () => {
@@
-173,16
+173,6
@@
export const LIST_FORMATTER = new Intl.ListFormat('en-US', {
type: 'conjunction'
})
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
export const generateRandomInteger = (
max = Number.MAX_SAFE_INTEGER,
min = 0