From: Jérôme Benoit Date: Sun, 7 Apr 2024 16:36:16 +0000 (+0200) Subject: refactor(benchmark): finish migration to tatami-ng X-Git-Tag: v3.1.30~27 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b5ca7c942f3f11b2669e1529cf46e1b1e576ef41;p=poolifier.git refactor(benchmark): finish migration to tatami-ng Signed-off-by: Jérôme Benoit --- diff --git a/.vscode/launch.json b/.vscode/launch.json index a80e9417..f3ee906a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -27,7 +27,7 @@ { "type": "node", "request": "launch", - "name": "Launch Mitata Benchmark Debug", + "name": "Launch Tatami NG Benchmark Debug", "cwd": "${workspaceFolder}", "runtimeExecutable": "pnpm", "runtimeArgs": ["run", "benchmark:tatami-ng:debug"], diff --git a/benchmarks/benchmarks-utils.mjs b/benchmarks/benchmarks-utils.mjs index 85bc57fc..35c335c4 100644 --- a/benchmarks/benchmarks-utils.mjs +++ b/benchmarks/benchmarks-utils.mjs @@ -249,7 +249,7 @@ export const runPoolifierBenchmarkBenchmarkJsSuite = async ( }) } -export const runPoolifierBenchmarkMitata = async ( +export const runPoolifierBenchmarkTatamiNg = async ( name, workerType, poolType, diff --git a/benchmarks/internal/bench.mjs b/benchmarks/internal/bench.mjs index 125500f2..9eb70526 100644 --- a/benchmarks/internal/bench.mjs +++ b/benchmarks/internal/bench.mjs @@ -9,7 +9,7 @@ import { import { TaskFunctions } from '../benchmarks-types.cjs' import { runPoolifierBenchmarkBenchmarkJsSuite, - runPoolifierBenchmarkMitata + runPoolifierBenchmarkTatamiNg } from '../benchmarks-utils.mjs' const poolSize = availableParallelism() @@ -33,7 +33,7 @@ switch ( }).values.type ) { case 'tatami-ng': - await runPoolifierBenchmarkMitata( + await runPoolifierBenchmarkTatamiNg( 'FixedThreadPool', WorkerTypes.thread, PoolTypes.fixed, @@ -43,7 +43,7 @@ switch ( workerData } ) - await runPoolifierBenchmarkMitata( + await runPoolifierBenchmarkTatamiNg( 'DynamicThreadPool', WorkerTypes.thread, PoolTypes.dynamic, @@ -53,7 +53,7 @@ switch ( workerData } ) - await runPoolifierBenchmarkMitata( + await runPoolifierBenchmarkTatamiNg( 'FixedClusterPool', WorkerTypes.cluster, PoolTypes.fixed, @@ -63,7 +63,7 @@ switch ( workerData } ) - await runPoolifierBenchmarkMitata( + await runPoolifierBenchmarkTatamiNg( 'DynamicClusterPool', WorkerTypes.cluster, PoolTypes.dynamic,