Skip to content

Add networking benchmarks for euca-net#105

Open
stainlu wants to merge 1 commit intomainfrom
bench/net-benchmarks
Open

Add networking benchmarks for euca-net#105
stainlu wants to merge 1 commit intomainfrom
bench/net-benchmarks

Conversation

@stainlu
Copy link
Copy Markdown
Owner

@stainlu stainlu commented Mar 27, 2026

Summary

  • Add Criterion-based benchmarks for the euca-net crate covering serialization, deserialization, delta compression, and packet header operations
  • Benchmarks validate bincode EntityState ser/de throughput at scales of 10, 100, and 1K entities
  • Delta field comparison benchmark simulates ReplicationState::field_changed() with realistic ~10% byte-diff snapshots at 100 and 1K fields
  • PacketHeader write/read roundtrip measures per-packet fixed overhead

Test plan

  • cargo check -p euca-net compiles cleanly
  • cargo test -p euca-net — all 63 unit tests pass
  • cargo bench --bench net_bench -- --quick — all 4 benchmark groups execute successfully
  • cargo clippy -p euca-net -- -D warnings — no lint warnings

🤖 Generated with Claude Code

Criterion-based benchmarks covering bincode serialization/deserialization
of EntityState at multiple scales (10, 100, 1K), delta field comparison
simulating replication change detection, and PacketHeader write/read roundtrip.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying euca-engine with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1a558b8
Status: ✅  Deploy successful!
Preview URL: https://7835bf0a.euca-engine.pages.dev
Branch Preview URL: https://bench-net-benchmarks.euca-engine.pages.dev

View logs

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