Skip to content

test(sync): time clone, push and fetch over HTTP - #132

Open
PiquelChips wants to merge 1 commit into
feat/sync-push-groupsfrom
feat/sync-bench
Open

PiquelChips wants to merge 1 commit into
feat/sync-push-groupsfrom
feat/sync-bench

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Sync is a hot path, so it gets benchmarks: divan, over HTTP on localhost through the SDK, on the 20,000-file fixture, including the server's work and the client's durable writes.

Benchmarks (20k files over local HTTP):

Time
Clone about 490 ms
Push of 100 edits 47 ms
Fetch of 100 edits 22 ms
Fetch that brings nothing, 10k changes 0.7 ms

The last runs with the remote's event cursor as of the last fetch; the same fetch without a cursor, as when it expired, is benchmarked too.

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: 80504080-40ab-4587-bc0d-b65bede544ab
Commits

Reviewing files that changed from the base of the PR and between ef2b369 and 28e27f3.

Files selected for processing: 3

  • AGENTS.md
  • apps/origin-src/Cargo.toml
  • apps/origin-src/benches/sync.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/sync-bench branch 2 times, most recently from 8f8c53b to 522fd03 Compare November 22, 2026 18:54
Sync is a hot path, so it gets divan benchmarks, over HTTP on localhost
through the SDK, on the 20,000-file fixture: the snapshot a clone
fetches, fetching a snapshot with 100 files changed since one the client
has, and pushing a revision with 100 files edited. And a fetch that
brings nothing from a repository with 10,000 changes, with the remote's
event cursor as of the last fetch and without, as when it expired. Each
includes the server's work and the client's durable writes.
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