Skip to content

quest: scope benchmark-first performance audit findings - #6318

Merged
kixelated merged 1 commit into
mainfrom
codex/performance-audit-quests
Oct 22, 2026
Merged

kixelated merged 1 commit into
mainfrom
codex/performance-audit-quests

Conversation

@kixelated

@kixelated kixelated commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

A source audit of main 1d43c096e044 found performance risks that current benchmark shapes do not isolate. These are hypotheses, not claimed speedups or newly measured production regressions.

Approach

Add 15 independently landable m2 quests under quest/m2/performance-survey/, ranked by expected impact. Cover fragmented QUIC sends, task capacity after bursts, Rust/JS bandwidth allocation, cached JS group joins, PCM batching, fragmented MKV parsing, QUIC scheduling churn, HLS serving, buffered browser groups, datagrams, JWT verification, announcement snapshots, selective session operations, browser media copies and GStreamer buffer ownership.

Every quest requires a production-path baseline, independent scaling sweeps, paired before/after evidence, equivalent-work correctness checks and nightly coverage. CPU, allocations, copies, retained memory and latency are measured where relevant. A measured no-win is a valid outcome. Browser findings require browser measurements; network performance uses finite-queue bufferbloat.

The real JS allocator operation-count probe found exactly 2N² priority reads for all grants in one tier: 512 / 8,192 / 131,072 for 16 / 64 / 256 reservations, excluding sorting. With distinct tiers, 16 to 64 reservations increased reads from 6,952 to 438,944. The reproducible command is in the bandwidth quest. This proves repeated work, not browser latency.

Impact

  • Public API: none; quests only.
  • Wire format: none.
  • No package versions, production behavior or benchmark thresholds change.

Alternatives

Reuse existing owners for release regressions, channel contention, FFI costs, GPU pools, routing wakes and worker isolation. Extract six existing audit coverage items into concrete quests and link them back; keep the recurring audit active for nightly attribution and remaining coverage. Do not optimize the archive reader being replaced.

The requested scope already authorizes this audit and benchmark-required planning; no implementation contract or API choice is settled here.

Validation

  • just ci passes for the final diff.
  • quest check --base origin/main: 460 documents pass.
  • git diff origin/main --check passes; all new repository links resolve.
  • Reproduced allocator operation counts with Nix Bun 1.4.2.
  • Separately reproduced the base branch's missing moq-archive/producer nightly selection. moq-dev/moq#6266 already owns its fix; it is not duplicated.
  • Full performance, browser, GPU and wrapper suites were not run. The quests require those measurements before accepting optimizations.

Follow-ups

The 15 new quests are the requested follow-ups. The epic records the audit revision, evidence limits, benchmark methodology and overlap with open PRs, including moq-dev/moq#6311.

(Written by GPT-6)

Co-Authored-By: Codex <noreply@openai.com>
@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 19 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 978bc019-dd83-4d78-9f13-3cf8f616502e
📥 Commits

Reviewing files that changed from the base of the PR and between d44813c and 659b66d.

📒 Files selected for processing: 18
  • quest/m1/audit-perf.md
  • quest/m2/README.md
  • quest/m2/performance-survey/README.md
  • quest/m2/performance-survey/announced-snapshots.md
  • quest/m2/performance-survey/audio-batches.md
  • quest/m2/performance-survey/bandwidth-grants.md
  • quest/m2/performance-survey/browser-media-copies.md
  • quest/m2/performance-survey/datagram-delivery.md
  • quest/m2/performance-survey/gst-buffers.md
  • quest/m2/performance-survey/hang-buffered.md
  • quest/m2/performance-survey/hls-serving.md
  • quest/m2/performance-survey/js-cached-groups.md
  • quest/m2/performance-survey/jwt-verification.md
  • quest/m2/performance-survey/mkv-fragments.md
  • quest/m2/performance-survey/quic-schedule-churn.md
  • quest/m2/performance-survey/quic-send-fragments.md
  • quest/m2/performance-survey/session-selection.md
  • quest/m2/performance-survey/task-capacity.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T15:24:11.369685Z 659b66d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kixelated
kixelated added this pull request to the merge queue Oct 22, 2026
@kixelated kixelated changed the title quest: scope benchmark-first performance audit findings quest: scope benchmark-first performance and memory audits Oct 22, 2026
@kixelated kixelated changed the title quest: scope benchmark-first performance and memory audits quest: scope benchmark-first performance audit findings Oct 22, 2026
Merged via the queue into main with commit 706e2de Oct 22, 2026
11 checks passed
@kixelated
kixelated deleted the codex/performance-audit-quests branch October 22, 2026 17:09
kixelated added a commit that referenced this pull request Oct 22, 2026
The performance survey (#6318) landed the same SendBuffer finding with a
fuller plan, so drop the audit's duplicate and move that quest to m1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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