Skip to content

Commit 660b76e

Browse files
Update fill variants
1 parent 423c062 commit 660b76e

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/performance-benchmark.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,21 @@ jobs:
540540
541541
# ── variant detection ───────────────────────────────────────────────
542542
# Path layout:
543-
# benchmark-results/benchmark-csv-<N>-<fw>-<variant>/<variant>/file.csv
543+
# benchmark-results/benchmark-csv-<N>-<fw>/<variant>/file.csv
544+
# Variants: knet, standard, knet_checked, standard_checked.
545+
# knet_checked and standard_checked are mapped back to knet/standard
546+
# because the checked/plain split is already done by the caller
547+
# (roundtrip_checked_csvs vs roundtrip_plain_csvs); inside each
548+
# aggregation bucket we only need to know knet vs standard.
544549
def variant_from_path(path):
545-
m = re.search(r'[/\\](knet|standard)[/\\]', path)
546-
return m.group(1) if m else "unknown"
550+
# Normalise separators so the regex works on Windows paths too
551+
p = path.replace("\\", "/")
552+
# Match the most specific pattern first (knet_checked before knet)
553+
if "/knet_checked/" in p: return "knet"
554+
if "/standard_checked/" in p: return "standard"
555+
if "/knet/" in p: return "knet"
556+
if "/standard/" in p: return "standard"
557+
return "unknown"
547558
548559
# ── CSV parsing ─────────────────────────────────────────────────────
549560
def read_csv(path):

0 commit comments

Comments
 (0)