Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
0cd0fe1
rqe-optimizer: evaluate AutoSketch vs ASAP on the synthetic and trace…
zzylol Oct 7, 2026
16c194d
rqe-optimizer: trace key queries keep one accumulator per key; report…
zzylol Oct 7, 2026
fd2dac8
eval: one accuracy level, p95; plots join one RQE set and charge Auto…
zzylol Oct 7, 2026
2b9bccf
eval: summaries show Σ window/slide; synthetic summary to its own file
zzylol Oct 7, 2026
06f2cf1
eval: RQEs carry their top-k k (#185)
zzylol Oct 7, 2026
1da0755
eval: p95 results for the synthetic grid and the traces
zzylol Oct 8, 2026
6911ec5
eval: figures and tables give each method's absolute cost
zzylol Oct 8, 2026
794d7aa
eval: metrics dimension, one dashboard per metric (21 · m RQEs)
zzylol Oct 8, 2026
dd0fe2f
eval: AutoSketch benchmarks each config once per metric
zzylol Oct 8, 2026
aa3fb10
eval: cost vs. total estimated latency for every workload
zzylol Oct 8, 2026
9c0f283
eval: finer SLA grid, {0.003, 0.01, 0.03, 0.1, 0.3, 1, 3, 10} ms and …
zzylol Oct 8, 2026
1421240
eval: AutoSketch probe list and measured benchmark time; traces with …
zzylol Oct 8, 2026
dbb4aac
eval: cost by use (sketch-bench #188); Pareto frontier sweep; mixed s…
zzylol Oct 8, 2026
3178ad4
eval: version 1 (no SLA) results on the mixed set, with AutoSketch's …
zzylol Oct 8, 2026
d0ec684
eval: version 2, a batch latency SLA, on the synthetic mixed set
zzylol Oct 8, 2026
768b6ee
eval: remove the old trace results and figures
zzylol Oct 8, 2026
d04d66f
eval: trim the PR to what it needs
zzylol Oct 9, 2026
a59a03c
eval: keep only what the three figures need
zzylol Oct 9, 2026
19a101b
eval: commit the inputs of the three figures
zzylol Oct 9, 2026
e9df93a
eval: the raw approxbench records behind the figures' study
zzylol Oct 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,032 changes: 1,032 additions & 0 deletions rqe-optimizer/examples/autosketch_vs_asap.rs

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions rqe-optimizer/results/autosketch-vs-asap-inputs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Inputs of the AutoSketch vs. ASAP figures

Everything the three figures were computed from (`../autosketch-vs-asap-synthetic/`
and `../autosketch-vs-asap-synthetic-sla/`), as run on 2026-10-08.

- `saturation/`: the sketch-bench study on asap_sketchlib 0.3.0 (#174,
#178–#186), the `--saturation-dir` the runner reads:
- `optimizer_cost/rqe_atomic_costs.json`: the cost table, one row per
config of every family the optimizer plans, sketches (HLL, KLL,
DDSketch, CMS-heap top-k) and exact aggregations (exact-sum,
exact-increase, exact-min, exact-max, exact-delta-set): CPU per insert,
merge and query, memory per instance, accuracy, measured serially on one
idle machine at the synthetic data's shape;
- `out_grid_1e7_cost/`: accuracy vs. items to N = 1e7 over the grid,
including the cost table's shape (Zipf 1.1 over 1e4 keys; Pareto a = 2),
with merge curves for the sketches that lose accuracy when merged;
- `out_1e9/`: the targeted points past 1e7 that the workloads read.
- `tables/`: the synthetic mixed-set workloads from
`scripts/export_autosketch_eval_table.py --synthetic` (RQEs, streams,
targets, data shapes) and `plan.tsv` (one run per table).

AutoSketch's measured benchmark times are next to each figure's results
(`autosketch-benchmark-times.json`, `autosketch_benchmark_times.json`).
31 changes: 31 additions & 0 deletions rqe-optimizer/results/autosketch-vs-asap-inputs/raw/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Raw approxbench records of the study

These are the raw approxbench records (gzipped JSONL, one record per
benchmark run) behind `../saturation/`, from the sketch-bench study on
asap_sketchlib 0.3.0 run on 2026-10-07 with `scripts/study_saturation.py`
(sketch-bench main at the time, with #186's full-cross grid). The curves and
the cost table in `../saturation/` are reduced from them; the figures read
only those.

Rerunning them takes **0.77 h of machine time in all, run in parallel on 5
CloudLab machines** (Intel Xeon E5-2683 v3, 56 cores each), so about 20–30
minutes of wall time; the cost table alone, measured serially on an idle
machine, takes 17 minutes.

Every accuracy run is `study_saturation.py --phase accuracy --seeds 3` plus:

| File | Machine | Arguments | Records | Run time | Feeds |
|---|---|---|---|---|---|
| `grid_topk.saturation_accuracy.jsonl.gz` | clnode155 | `--n-max 1e7 --jobs 48 --families topk` (then the K = 1e4 column refilled for #186) | 13,056 | 98 s + 42 s | `out_grid_1e7_cost/` |
| `grid_card.saturation_accuracy.jsonl.gz` | clnode178 | `--n-max 1e7 --jobs 48 --families cardinality` (then the K = 1e4 column refilled) | 4,896 | 100 s + 43 s | `out_grid_1e7_cost/` |
| `grid_quantile.saturation_accuracy.jsonl.gz` | clnode178 | `--n-max 1e7 --jobs 48 --families quantile --merge-shards-list 1,4,16,64` | 5,712 | 32 s | `out_grid_1e7_cost/` |
| `kll_a2.saturation_accuracy.jsonl.gz` | clnode178 | `--no-cost-shape --families quantile --alphas 2 --n-max 3.16e7 --jobs 24`, KLL k ∈ {50, 200, 800}, `--merge-shards-list 1,4,16,64,256,1024,4096,16384,65536,86400` | 1,710 | 47 s | `out_1e9/` |
| `kll_a3.saturation_accuracy.jsonl.gz` | clnode178 | as above with `--alphas 3 --n-max 3.16e8`, `--merge-shards-list 1,4,16,64,256,1024,3600,4096` | 1,656 | 362 s | `out_1e9/` |
| `dd_a2.saturation_accuracy.jsonl.gz` | clnode178 | `--no-cost-shape --families quantile --alphas 2 --n-max 3.16e7 --jobs 12`, DDSketch α ∈ {0.005, 0.01, 0.02, 0.05} | 228 | 12 s | `out_1e9/` |
| `dd_a3.saturation_accuracy.jsonl.gz` | clnode178 | as above with `--alphas 3 --n-max 3.16e8` | 276 | 146 s | `out_1e9/` |
| `topk_1e9_3.saturation_accuracy.jsonl.gz` | clnode138 | `--no-cost-shape --families topk --thetas 1.1 --cardinalities 10000 --n-max 1e9 --jobs 24`, rows = 3 | 300 | 389 s | `out_1e9/` |
| `topk_1e9_5.saturation_accuracy.jsonl.gz` | clnode167 | as above, rows = 5 | 300 | 437 s | `out_1e9/` |
| `optimizer_cost.rqe_atomic_costs_raw.jsonl.gz`, `optimizer_cost.rqe_atomic_costs_grid.jsonl.gz` | clnode109 (alone) | `--phase optimizer-cost --seeds 3` (cost and accuracy passes, sketches and exact aggregations, serially) | 188 | 1047 s | `optimizer_cost/` |

Run times are each file's first-to-last record timestamps; the refills ran
about 40 minutes after their grids and are counted separately.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Loading