Skip to content

test(ci): benchmark the worker's overhead per check - #164

Open
PiquelChips wants to merge 1 commit into
feat/ci-workerfrom
feat/ci-bench
Open

PiquelChips wants to merge 1 commit into
feat/ci-workerfrom
feat/ci-bench

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

The worker sits between every landing that waits for a check and the check itself, so its overhead matters.

apps/origin-ci/benches/worker.rs measures it against a server over HTTP on localhost, for a check whose command is true: from a check.requested event to the statement issued, which lands the change; a check alone; a check its result already covers; and the command alone, so the overhead is the difference.

The worker adds about 11 ms per check on top of the command itself. Answering a check that's already covered takes 0.7 ms.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 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 34 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: 7f224778-1398-4da6-96bb-46b08a9f9633
Commits

Reviewing files that changed from the base of the PR and between c5a4715 and 16e7537.

Files ignored due to path filters: 1

  • Cargo.lock is excluded by !**/*.lock
Files selected for processing: 3

  • AGENTS.md
  • apps/origin-ci/Cargo.toml
  • apps/origin-ci/benches/worker.rs
  • 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

@PiquelChips
PiquelChips added this pull request to stack #165 November 22, 2026 14:59
@PiquelChips
PiquelChips force-pushed the feat/ci-bench branch 2 times, most recently from c88b420 to 408f0c8 Compare November 22, 2026 16:40
@PiquelChips
PiquelChips force-pushed the feat/ci-bench branch 2 times, most recently from 5772272 to c495aa7 Compare November 22, 2026 18:54
The worker sits between every landing that waits for a check and the
check itself, so its overhead matters.

`benches/worker.rs` measures it against a server over HTTP on localhost,
for a check whose command is `true`: from a `check.requested` event to
the statement issued, which lands the change; a check alone; a check its
result already covers; and the command alone, so the overhead is the
difference. The worker adds about 11 ms per check on top of the command
itself, and answering a check that's already covered takes 0.7 ms.
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