Skip to content

docs: ASAPBench interface design - #266

Merged
GordonYuanyc merged 3 commits into
mainfrom
docs/interface-design
Nov 30, 2026
Merged

GordonYuanyc merged 3 commits into
mainfrom
docs/interface-design

Conversation

@GordonYuanyc

@GordonYuanyc GordonYuanyc commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Adds docs/interface-design.md: the interfaces of ASAPBench as they are on main (after #268–#283), for people who add a sketch or a system, run the benchmark, or call it from another crate.

  • Interfaces at a glance: the five interfaces (adding a sketch, adding a system, running one system with approxbench benchmark-external, running a use case with run_use_case_on_systems.py, calling aqpbm-core from code), with what goes in, what comes out, and which output formats carry a version number.
  • Adding a sketch: the registry entry, the wrapper functions, the order the harness calls them, the steps.
  • Adding a system: which system supports which kind of run; the traits and types for periodic queries and write throughput (EngineUnderTest, InstalledArm, SampleWriter) and for one-shot queries (OneShotQueryEngine); the order of calls; what the harness does when something fails; the steps, including the system registry and the conformance check.
  • Running the benchmark: a preliminary example, ASAPQuery-backend 8263b22b against VictoriaMetrics v1.154.1 on use case 5 (one arm, two trials, numbers from that run); the workload file, arms, commands, and the outputs of approxbench and of the use-case script.
  • Using ASAPBench as a library: what is public and which modules another crate may use.
  • Open questions: three, about how arms are compared across systems and the plan format.

How the benchmark measures time and memory, and how it scores answers, are left to other documents.

Only this one document changes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Fj92nP6BDs8xKTsK4ANbnP

GordonYuanyc and others added 2 commits November 24, 2026 00:27
Describes what the benchmark's interfaces should be: the sketch registry
entry and wrapper functions at operator level; the EngineUnderTest and
InstalledArm traits, workload and arm inputs, run directory outputs, and
measurement, accuracy and error rules at system level; which parts are
public; and the open questions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
count-min instead of cms, count-min-fast-path-vector-2d instead of
cms-fastpath-vector2d, sketch_oxide instead of oxide, asap_sketchlib
instead of lib.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The document now describes main as it is after #268-#283: the system
registry, the one-shot and write-throughput interfaces, the full traits
and types, the run directory, and which output formats carry a version.
It covers interfaces only (measurement and scoring methods are out), opens
with the five interfaces at a glance, and its example is the
ASAPQuery-backend 8263b22b vs VictoriaMetrics run of use case 5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fj92nP6BDs8xKTsK4ANbnP
@GordonYuanyc GordonYuanyc changed the title docs: interface design for the operator and system levels docs: ASAPBench interface design Nov 30, 2026
@GordonYuanyc
GordonYuanyc merged commit d3839ea into main Nov 30, 2026
@GordonYuanyc
GordonYuanyc deleted the docs/interface-design branch November 30, 2026 20:20
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