Skip to content

benchmark: q6 ground truth - #103

Closed
GnaneshGnani wants to merge 13 commits into
debs_q5from
debs_q6
Closed

GnaneshGnani wants to merge 13 commits into
debs_q5from
debs_q6

Conversation

@GnaneshGnani

@GnaneshGnani GnaneshGnani commented Apr 1, 2026

Copy link
Copy Markdown
Contributor

Q6 — Distinct symbol cardinality (HLL)

Adds ground truth and 60-minute accuracy benchmark for Q6: count of distinct trading symbols per window.

Benchmark results

Setup: Day 08-11-21, full feed data/, precision=14, 12 × 5-min windows
Sketch: HyperLogLog, precision=14
Metric: max relative error |hll_estimate − exact_count| / exact_count; threshold ≤ 2%.

Windows Pass rate Verdict
12 (09:00–10:00 CET) 12 / 12 ✅ Perfect — max error never exceeds 0.13%

HLL with precision 14 achieves near-perfect cardinality estimates on this data. Maximum relative error across all windows is 0.0013 (0.13%), far below the 2% threshold. This query passes with the most headroom of any evaluated query.

Cumulative: Q1: 11/12 ⚠️ | Q3: not run | Q4: 12/12 ✅ | Q5: 3/12 ⚠️ | Q6: 12/12 ✅

See results/benchmarking.md for per-window breakdown.

@zzylol

zzylol commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Closing — this branch is conflicting with main (badly diverged, ~32k-line deletions) and predates the consolidated multi-sketch + latency eval harness merged in #494, which redid this ground-truth work. Please reopen and rebase if any ground truth here is still needed.

@zzylol zzylol closed this Jun 14, 2026
@zzylol
zzylol deleted the debs_q6 branch July 17, 2026 20:07
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.

2 participants