Repository navigation
docs(bench): document benchmark data and add crates metadata - #414
AlexanderWagnerDev wants to merge 1 commit into
Conversation
|
Note The title starts with
|
|
Warning Review limit reachedYou'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 43 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e45853155a
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| To get a JSON file like the published ones, save the script's output as | ||
| `sweep.log` in the repository root, run `scripts/bench_report.py collect` | ||
| (warning "no Criterion results" is expected if you only ran the sweep), then |
There was a problem hiding this comment.
Include the required collection flags in the rerun instructions
When following these instructions to export a local sweep, scripts/bench_report.py collect exits before writing results.json: its collect --help lists --kind {main,release,manual,pr} as required. Consequently, the subsequent merge cannot produce the advertised JSON file. Document collect --kind manual --repo OpenRTMP/librtmp2-server; the repository flag also matters outside GitHub Actions because the default is OpenRTMP/librtmp2, which mislabels the result and prevents cmd_collect from recording deps.librtmp2.
Useful? React with 👍 / 👎.
| git clone https://github.com/OpenRTMP/librtmp2 | ||
| cd librtmp2 && cargo build --release --examples && cd ../librtmp2-server |
There was a problem hiding this comment.
Pin the benchmark client version in the local rerun commands
When librtmp2's default branch differs from the version in the server's Cargo.lock, these commands build a different benchmark client from the one used for the published measurements, contrary to the version guarantee above. run_rtmp_benchmarks.sh directly executes the sibling checkout's binaries without checking their version, so changes to the client's timing or measurement behavior can change the results independently of the servers. Match the workflow's “Check out librtmp2” step by checking out v<version from Cargo.lock> before building the examples.
Useful? React with 👍 / 👎.
| - **join** - late-joiner latency with 1 / 25 / 100 viewers already attached, | ||
| plus frames per viewer. |
There was a problem hiding this comment.
Describe the join tiers as joining viewers, not existing viewers
For readers interpreting the join results as latency under established fan-out load, “already attached” describes a scenario the sweep does not measure. In scripts/run_rtmp_benchmarks.sh, relay_sweep() starts a publisher and then invokes a single bench_relay --players "$n" for each tier (lines 221–227); it does not establish 1 / 25 / 100 background viewers before measuring additional joins. Describe these as join latency for batches of 1 / 25 / 100 viewers so the published numbers are not cited as measurements with that many existing subscribers.
Useful? React with 👍 / 👎.
|



Summary
bench/README.mdas the entry point for the benchmark data files and rerun instructions.README.md.keywordsandcategories.Changes
bench/README.md: file layout (latest.json,releases/<tag>.json), schema fields, rerun and citation pointers.README.md: links to the interop matrix andbench/README.md.Cargo.toml: crates.io discovery metadata only; no dependency or version change.Validation
git diff --checkis clean.Limitations
librtmp2documentation PR is merged.