Skip to content

docs(audits): WorkQueue SP vs MP overhead benchmark plan (#1572) - #3831

Merged
oferchen merged 1 commit into
masterfrom
docs/workqueue-sp-vs-mp-1572
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/workqueue-sp-vs-mp-1572

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • New audit at docs/audits/workqueue-sp-vs-mp-overhead.md covering the current WorkQueueSender shape (Clone gating behind the multi-producer cargo feature), crossbeam_channel::bounded MP semantics, the proposed criterion matrix (P x C x N), and per-message overhead expectations.
  • Defines a hypothesis-falsifying decision rule: keep the feature only if MP wins by at least 15 percent in some regime and P=1 MP is within 2 percent of SP; otherwise close the feature as not-justified.

Test plan

  • git diff master...HEAD shows only the new audit file.
  • wc -l docs/audits/workqueue-sp-vs-mp-overhead.md reports under 350.
  • CI docs lint passes.

Adds a hypothesis-falsifying benchmark plan that gates whether the
gated `multi-producer` cargo feature graduates or is dropped. Documents
the crossbeam-channel MP semantics, the SP baseline at
crates/engine/src/concurrent_delta/work_queue/, the proposed criterion
matrix (1/2/4/8 producers x 1/4/8/16 consumers x 10K/100K/1M items),
and the per-message overhead targets and decision criteria.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit 4f4b11e into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the docs/workqueue-sp-vs-mp-1572 branch May 8, 2026 03:48
oferchen added a commit that referenced this pull request May 18, 2026
Adds a hypothesis-falsifying benchmark plan that gates whether the
gated `multi-producer` cargo feature graduates or is dropped. Documents
the crossbeam-channel MP semantics, the SP baseline at
crates/engine/src/concurrent_delta/work_queue/, the proposed criterion
matrix (1/2/4/8 producers x 1/4/8/16 consumers x 10K/100K/1M items),
and the per-message overhead targets and decision criteria.
oferchen added a commit that referenced this pull request Aug 24, 2026
Adds a hypothesis-falsifying benchmark plan that gates whether the
gated `multi-producer` cargo feature graduates or is dropped. Documents
the crossbeam-channel MP semantics, the SP baseline at
crates/engine/src/concurrent_delta/work_queue/, the proposed criterion
matrix (1/2/4/8 producers x 1/4/8/16 consumers x 10K/100K/1M items),
and the per-message overhead targets and decision criteria.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant