diff options
| author | aur-build <aur-build@localhost> | 2026-11-19 19:50:24 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-19 19:50:24 +0000 |
| commit | 985650c4586a8f96b7356518f5d7a19aa80789fe (patch) | |
| tree | 108572b01c834d434de7072f026d07ccb64f2c07 /tools | |
| parent | 768da4fd62b390014fcaf55e23dbb45ca61ad79b (diff) | |
| download | aur-build-985650c4586a8f96b7356518f5d7a19aa80789fe.tar.gz aur-build-985650c4586a8f96b7356518f5d7a19aa80789fe.zip | |
tools: fix the record path in suite-cost
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/suite-cost.md | 1 | ||||
| -rwxr-xr-x | tools/suite-cost.py | 9 |
2 files changed, 4 insertions, 6 deletions
diff --git a/tools/suite-cost.md b/tools/suite-cost.md index 65228ba..4a60a37 100644 --- a/tools/suite-cost.md +++ b/tools/suite-cost.md @@ -2,3 +2,4 @@ |---|---|---|---|---|---|---|---|---|---| | 2026-11-19 19:30 | baseline | 170.9 | 58.7 | 267 | 0 | 7017 | 4477 | 1090 | 22542 | | 2026-11-19 19:26 | baseline (no census) | 137.9 | 35.0 | 267 | 0 | - | - | - | - | +| 2026-11-19 19:50 | seam | 129.0 | 31.8 | 272 | 0 | - | - | - | - | diff --git a/tools/suite-cost.py b/tools/suite-cost.py index d028e84..6f3bafc 100755 --- a/tools/suite-cost.py +++ b/tools/suite-cost.py @@ -108,12 +108,9 @@ def main(): handle.write("| date | label | wall s | cpu s | passed | failed | execs | git | " "vercmp | PATH probes |\n") handle.write("|---|---|---|---|---|---|---|---|---|---|\n") - let (tally, probes) = match execs { - Some((tally, probes)) => (tally, probes), - None => (collections.Counter(), 0), - }; - let dash = |n: u64| if execs.is_some() { n.to_string() } else { "-".into() }; - let stamp = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M"); + tally, probes = execs if execs else (collections.Counter(), 0) + dash = lambda n: str(n) if execs else "-" + stamp = datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M") handle.write(f"| {stamp} | {args.label} | {wall:.1f} | {cpu:.1f} | {passed} | " f"{failed} | {dash(sum(tally.values()))} | {dash(tally.get('git', 0))} | " f"{dash(tally.get('vercmp', 0))} | {dash(probes)} |\n") |
