Skip to content

feat: add qbench repeat median sampling - #47

Merged
tiye merged 2 commits into
fix/qdocco-block-comment-codefrom
feat/qbench-repeat-median
Aug 22, 2026
Merged

feat: add qbench repeat median sampling#47
tiye merged 2 commits into
fix/qdocco-block-comment-codefrom
feat/qbench-repeat-median

Conversation

@tiye

@tiye tiye commented Aug 22, 2026

Copy link
Copy Markdown
Member

Summary

  • add RFC 0105 for repeatable qbench sampling
  • add --repeat N and report upper median timings across complete samples
  • document the three-sample command and add CLI coverage for repeat validation

Validation

  • make check
  • git diff --check

This PR is stacked on PR #46 and should remain unmerged with the rest of the chain.

Copilot AI lite review requested due to automatic review settings August 22, 2026 15:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds repeatable sampling to the qbench benchmark runner so timing output can report the (upper) median across multiple full samples, while keeping the existing quickcoffee.qbench.v1 schema and adding CLI/test/docs coverage.

Changes:

  • Add --repeat N (default 1) to qbench and compute per-phase upper-median timings across N complete samples.
  • Extend JSON and text outputs with a repeat field/key and validate --repeat is a positive integer (exit code 2 otherwise).
  • Document the new behavior via RFC 0105 and update README/PERFORMANCE docs; expand CLI integration tests for repeat.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/cli_tools.rs Extends CLI integration coverage to assert repeat appears in both JSON/text output and validates --repeat 0 fails.
src/bin/qbench.rs Implements --repeat, collects per-sample timings, and reports upper-median *_ns values while emitting repeat in outputs.
RFCs/0105-qbench-repeat-median.md Defines the repeat + upper-median sampling behavior and acceptance criteria.
RFCs/0000-project-scope.md Updates the documented RFC coverage range to include RFC 0105.
README.md Updates top-level RFC range reference to RFC 0105.
PERFORMANCE.md Documents --repeat 3 usage for median-of-three reporting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tiye
tiye merged commit 0963a07 into fix/qdocco-block-comment-code Aug 22, 2026
2 checks passed
@tiye
tiye deleted the feat/qbench-repeat-median branch August 22, 2026 17:51
tiye added a commit that referenced this pull request Aug 23, 2026
* fix: preserve qdocco block comments as code

* docs: regenerate manuals for qdocco block comments

* feat: add qbench repeat median sampling (#47)

* feat: add qbench repeat median sampling

* docs: document qbench repeat sampling

* fix: preserve multiline qdocco block comments

* fix: satisfy clippy in qdocco block parsing
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