Skip to content

perf(rust): Rewrite Rust benchmarks around shared bench.proto data#3497

Merged
chaokunyang merged 2 commits intoapache:mainfrom
chaokunyang:rust-bench-proto-report
Mar 22, 2026
Merged

perf(rust): Rewrite Rust benchmarks around shared bench.proto data#3497
chaokunyang merged 2 commits intoapache:mainfrom
chaokunyang:rust-bench-proto-report

Conversation

@chaokunyang
Copy link
Collaborator

Summary

  • rewrite the Rust benchmark suite around the shared benchmarks/proto/bench.proto cases used by the C++ benchmark reference
  • replace the old Rust-only benchmark model/proto tree with shared data factories plus generic Fory/Protobuf serializers and updated benchmark/report tooling
  • regenerate docs/benchmarks/rust/ with the new report and plot set, removing stale old-case artifacts

Verification

  • cd benchmarks/rust && cargo fmt --check
  • cd benchmarks/rust && cargo test --offline
  • cd benchmarks/rust && cargo bench --offline --bench serialization_bench -- struct --noplot
  • cd benchmarks/rust && cargo run --offline --release --bin fory_profiler -- --print-all-serialized-sizes
  • cd benchmarks/rust && CARGO_NET_OFFLINE=true bash ./run.sh

@chaokunyang chaokunyang changed the title Rewrite Rust benchmarks around shared bench.proto data perf(rust): Rewrite Rust benchmarks around shared bench.proto data Mar 22, 2026
@chaokunyang chaokunyang merged commit 83b717d into apache:main Mar 22, 2026
3 of 4 checks passed
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.

2 participants