Skip to content

docs(bench): document benchmark data and add crates metadata - #414

Open
AlexanderWagnerDev wants to merge 1 commit into
mainfrom
docs/bench-readme-and-crates-metadata
Open

AlexanderWagnerDev wants to merge 1 commit into
mainfrom
docs/bench-readme-and-crates-metadata

Conversation

@AlexanderWagnerDev

Copy link
Copy Markdown
Contributor

Summary

  • Adds bench/README.md as the entry point for the benchmark data files and rerun instructions.
  • Links the benchmark and interop documentation from README.md.
  • Adds crates.io keywords and categories.

Changes

  • bench/README.md: file layout (latest.json, releases/<tag>.json), schema fields, rerun and citation pointers.
  • README.md: links to the interop matrix and bench/README.md.
  • Cargo.toml: crates.io discovery metadata only; no dependency or version change.

Validation

  • Documentation-only change.
  • No dependency, lockfile, build or API change.
  • git diff --check is clean.

Limitations

  • The interop matrix link resolves after the companion librtmp2 documentation PR is merged.

@coldtea-pr-lens

Copy link
Copy Markdown

Note

The title starts with docs(bench):, so PR Lens left this pull request undrawn. Comment @pr-lens draw to draw it

github.comment.notice: false in .github/pr-lens.yml turns this note off

@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown

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 43 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review 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: 4a969330-82bc-4e7e-bb63-1f4666f8ba80
Commits

Reviewing files that changed from the base of the PR and between b4a6263 and e458531.

Files selected for processing: 3

  • Cargo.toml
  • README.md
  • bench/README.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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T21:02:05.564788Z e458531 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 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".

Comment thread bench/README.md
Comment on lines +65 to +67
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Comment thread bench/README.md
Comment on lines +53 to +54
git clone https://github.com/OpenRTMP/librtmp2
cd librtmp2 && cargo build --release --examples && cd ../librtmp2-server

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Comment thread bench/README.md
Comment on lines +37 to +38
- **join** - late-joiner latency with 1 / 25 / 100 viewers already attached,
plus frames per viewer.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

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