Skip to content

System leaderboard: web page in the sketch leaderboard's layout, Grafana one-shot dashboard, result archives - #284

Merged
GordonYuanyc merged 4 commits into
mainfrom
system-leaderboard
Dec 2, 2026
Merged

GordonYuanyc merged 4 commits into
mainfrom
system-leaderboard

Conversation

@GordonYuanyc

@GordonYuanyc GordonYuanyc commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Two views of the system-level results, both read from saved results, so changing a view never needs a rerun.

A. Web page in the sketch leaderboard's layout (system-leaderboard/)

  • Same pages, routes and look as ProjectASAP/sketch-leaderboard: Results (with details per record), Accuracy vs Cost, Throughput, Visualization, Decision Support.
  • One record per system, configuration and workload, written by scripts/system-leaderboard-data.py. Every record is marked Exact or Approximate; an approximate record names the exact record it is compared with.
  • Covers one-shot SQL queries (DuckDB, ClickHouse, PostgreSQL with TimescaleDB, Druid, PilotDB on the ClickBench hits workload) and the five use cases on systems (VictoriaMetrics vs ASAPQuery-backend).

B. Grafana (tools/grafana/)

  • generate_dashboards.py --one-shot and run.sh --one-shot add a one-shot query dashboard in its own "One-shot queries" folder.
  • The phase 2 and phase 3 dashboards regenerate byte-identical.

Result archives (scripts/leaderboard-data.sh)

scripts/leaderboard-data.sh pack <name>.tar.xz --one-shot <run-directory> --use-cases <runs-directory>
scripts/leaderboard-data.sh web <archive>
scripts/leaderboard-data.sh grafana <archive>

The 2026-12-01 results (one-shot runs on five systems, five use cases with two trials each) are 710 MB of results and pack to 12 MB. The archive is not in the repository.

CI fix (aqpbm-core)

  • harness_child_peak_memory failed about 3% of runs on main's code as well: for a single process, the sampled VmHWM can come out about 1% above wait4's ru_maxrss, and the sample was then taken as a larger peak.
  • A sample now replaces wait4's peak only when it is more than 5% above it, which still catches a process tree whose processes together use more than the largest one.
  • The test allows the same margin; 500 runs in a row pass.

Checked

  • npm run lint, npm run format:check, npm run build in system-leaderboard/.
  • Packed the 2026-12-01 results; opened the archive with both web and grafana; every page and dashboard renders.
  • cargo test -p aqpbm-core, cargo clippy -p aqpbm-core --all-targets --all-features, cargo fmt --check.

Known limits

  • Decision Support keeps the sketch leaderboard's scoring rule, where a missing memory value scores 0.
  • The report counts semantic differences between engines as error, for example ClickHouse's integer overflow in AVG(UserID).

🤖 Generated with Claude Code

GordonYuanyc and others added 4 commits December 2, 2026 00:22
scripts/system-leaderboard-data.py turns saved one-shot run directories and
use-case runs/index.json into one flat record per system, configuration and
workload, with each approximate record naming the exact record it is compared
with. system-leaderboard/ follows ProjectASAP/sketch-leaderboard page by page
(Results, details, Accuracy vs Cost, Throughput, Visualization, Decision
Support) over those records. The data file is not committed; it comes from an
archive of saved results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
generate_dashboards.py --one-shot writes a dashboard into a "One-shot queries"
folder that reads leaderboard/records.json: exact systems ranked, approximate
configurations against their exact baseline, every query on every
configuration, and failed queries. The phase 2 and phase 3 dashboards are
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s web page or Grafana

pack keeps the one-shot reports, results and workloads and the use-case runs,
with a manifest of when, from which commit and on which machine. web and
grafana unpack an archive under target/leaderboard-data/ and show it without
running any system again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rger peak

The test harness_child_peak_memory failed about 3% of runs, locally and on
CI: for a single dd process the sampled VmHWM came out up to about 1% above
wait4's ru_maxrss, both counting the same process, so the reading was taken
as a larger peak. A reading now replaces wait4's peak only when it is more
than 5% above it, which still catches a process tree whose processes together
exceed the largest one. The test allows the same margin between the reading
and the peak. 500 runs in a row pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@GordonYuanyc
GordonYuanyc merged commit 73c3f20 into main Dec 2, 2026
2 checks passed
@GordonYuanyc
GordonYuanyc deleted the system-leaderboard branch December 2, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant