From ba48b737f21cec9b270b415498960f921cb74323 Mon Sep 17 00:00:00 2001 From: jaakko Date: Tue, 14 Apr 2026 13:58:38 +0300 Subject: [PATCH] =?UTF-8?q?CodeBench:=20--scenarios=20tukee=20yksitt=C3=A4?= =?UTF-8?q?ist=C3=A4=20skenaariota=20(todo/users/blog)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kipina-codebench/benchmark.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kipina-codebench/benchmark.mjs b/kipina-codebench/benchmark.mjs index ef451dc..712a7c5 100644 --- a/kipina-codebench/benchmark.mjs +++ b/kipina-codebench/benchmark.mjs @@ -489,7 +489,9 @@ async function main() { console.log(`Mallit (${models.length}): ${models.join(', ')}`); - const scenarios = SCENARIO_FILTER === 'all' ? SCENARIOS : [SCENARIOS[0]]; + const scenarios = SCENARIO_FILTER === 'all' ? SCENARIOS : + SCENARIOS.filter(s => s.id === SCENARIO_FILTER).length > 0 ? SCENARIOS.filter(s => s.id === SCENARIO_FILTER) : + [SCENARIOS[0]]; console.log(`Skenaariot (${scenarios.length}): ${scenarios.map(s => s.id).join(', ')}`); if (ROUNDS > 1) console.log(`Toistoja: ${ROUNDS}`); console.log(`Tulokset: ${OUTPUT_DIR}/`);