Skip to content

System leaderboard: compare within a query set, declared by the data; open local results - #287

Merged
GordonYuanyc merged 1 commit into
mainfrom
leaderboard-external-data-and-comparisons
Dec 3, 2026
Merged

GordonYuanyc merged 1 commit into
mainfrom
leaderboard-external-data-and-comparisons

Conversation

@GordonYuanyc

Copy link
Copy Markdown
Collaborator

The system leaderboard compared every row with every other, and what an approximate row was compared with was decided by rules in the converter. This PR makes the query set the unit of comparison and moves "what is compared with what" into the data.

What the page shows

One-shot or periodic → query set (ClickBench hits, each use case, a PromQL spec) → in each query set:

Section Compares Over
Participants each system + configuration: exact or approximate, compared with whom, answered / not run / failed / unsupported, pending measurements all queries of the set
Exact participants exact with exact: query time (and relative to fastest), first run, CPU per query, error against the truth, memory, load / disk the queries every exact participant answered
Approximate participants each approximate one against its declared reference: time ratio, error, memory, CPU (per query for one-shot; query and ingest for periodic), decision agreement the queries both answered
Error against time one point per approximate participant: time over its reference, median or max error same
Any two participants any From → To in the set, with the per-query breakdown the queries both answered
Per query status, time, CPU, error of every participant each query

Nothing is ranked across query sets; the six cross-set pages (Systems, Switches, Accuracy vs Cost, Throughput, Visualization, Decision Support) are removed. Memory is shown in GiB / MiB.

Declared by the data

Each result directory carries leaderboard.json: display names, and query_sets with the queries, the truth, and per participant its mode, reference and measurements awaiting a rerun (with the reason). one-shot-workload.sh and run_use_case_on_systems.py write it; scripts/leaderboard_catalog.py writes it for saved results (one-shot, use-cases, spec) and marks pending measurements (pending). External results bring their own. system-leaderboard-data.py takes each record's mode and reference from its query set, leaves pending measurements out, reads --spec summaries, and writes catalog.json beside the records.

Open local results

Records and catalog files can be opened in the page; they stay in the browser and are gone after a reload, so results that must not be published can be shown beside the published ones.

After #286

The converter reads what #286 records: the engine-reported query time, the query / ingest CPU split, latency over the queries both systems asked, and the one-shot CPU of the engine process (DuckDB, PilotDB). The truth is read from a report's longer "Accuracy against …" line.

Checks

🤖 Generated with Claude Code

… open local results

The leaderboard now compares systems only inside a query set: one-shot or
periodic, then a set of queries (ClickBench hits, each use case, a PromQL
spec), then its participants. What is compared with what comes from the
data, not from rules in the page or the converter.

- Each result directory carries leaderboard.json: display names, and per
  query set its queries, the truth, and each participant's mode (exact or
  approximate), the participant it is compared with, and any measurements
  awaiting a rerun. one-shot-workload.sh and run_use_case_on_systems.py
  write it; scripts/leaderboard_catalog.py writes it for saved results and
  marks pending measurements.
- system-leaderboard-data.py takes each record's mode and reference from
  its query set, leaves pending measurements out, reads --spec summaries,
  per-query latency, the CPU split and per-query one-shot CPU, and writes
  catalog.json beside the records.
- The page: query sets by kind; per query set the participants, exact
  participants on the queries all of them answered, each approximate
  participant against its reference, an error-against-time chart, any two
  participants on the queries both answered, and a per-query table.
  The cross-query-set pages are gone.
- Open local results reads records and catalog files in the browser only,
  so results that must stay private can be shown without publishing them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@GordonYuanyc
GordonYuanyc merged commit e4a9111 into main Dec 3, 2026
1 of 2 checks passed
@GordonYuanyc
GordonYuanyc deleted the leaderboard-external-data-and-comparisons branch December 3, 2026 06:00
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