From 882bcece06c2b8363dede5922e7a215c6ec0815f Mon Sep 17 00:00:00 2001 From: jaakko Date: Tue, 14 Apr 2026 17:45:54 +0300 Subject: [PATCH] =?UTF-8?q?CodeBench:=20kirjoita=20results.json=20jokaisen?= =?UTF-8?q?=20kierroksen=20j=C3=A4lkeen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Välitulokset näkyvät heti tiedostossa, ei tarvitse odottaa koko ajon loppua. --- kipina-codebench/benchmark.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kipina-codebench/benchmark.mjs b/kipina-codebench/benchmark.mjs index 965c24e..4239438 100644 --- a/kipina-codebench/benchmark.mjs +++ b/kipina-codebench/benchmark.mjs @@ -583,6 +583,9 @@ async function main() { if (ROUNDS > 1) r.round = round; results.push(r); + // Tallenna tulokset jokaisen kierroksen jälkeen + writeFileSync(`${OUTPUT_DIR}/results.json`, JSON.stringify(results, null, 2)); + const status = r.error ? `✗ ${r.error}` : r.testsPassed === r.testsTotal && r.testsTotal > 0 ? `✓ ${r.testsPassed}/${r.testsTotal}` : `◐ ${r.testsPassed}/${r.testsTotal}`;