navid/veins / impl-rust / veins-cpprewrite/bench/core_bench.md

core_bench.md

← veins-cpprewrite/bench · 3301 bytes · raw · download · view source

Generated 2026-11-27 by bench/core_bench.py.

Environment

Implementation Binary
Rust veins-rust v0.1.0 (veins-store 1)
C++ veins v0.0.1 (veins-store 1)
Spectre veins v0.0.1 (veins-store 1)
host:        Darwin arm64
cpu:         Apple M2
repeats:     5 (median reported)
cpu pinning: no

Scope

The Rust binary implements the local-core subset: init, status, log, go/commit, co/checkout, bmk set|ls|rm, self-test, and version. It uses the same FastCDC parameters, BLAKE3 object IDs, zstd level 1, pack/index layout, operation log, and stat-cache invalidation window as the reference.

The subset does not implement merge/conflict objects, rebase/undo, the git bridge, ignore files, or the network protocol. The workload below contains no renames, ignores, merges, or network traffic, so the measured local operations are directly comparable.

Workload

Summary

Metric Rust C++ Spectre C++ / Rust Spectre / Rust
Commit total [s] 0.252 (0.250-0.262) 0.280 (0.279-0.291) 0.310 (0.309-0.330) 1.11x 1.23x
Checkout total [s] 0.162 (0.161-0.165) 0.175 (0.172-0.179) 0.181 (0.179-0.196) 1.08x 1.12x
Store size [MiB] 8.28 (8.28-8.37) 8.28 (8.28-8.37) 10.60 (10.60-10.69) 1.00x 1.28x

Each cell is the median with the observed min-max range in parentheses. A ratio above 1 means the other implementation took longer or used more space than Rust.

Repeats

Repeat Rust commit [s] C++ commit [s] Spectre commit [s] Rust checkout [s] C++ checkout [s] Spectre checkout [s]
1 0.262 0.291 0.330 0.165 0.172 0.195
2 0.250 0.280 0.310 0.162 0.172 0.196
3 0.252 0.281 0.309 0.161 0.179 0.179
4 0.252 0.279 0.309 0.162 0.175 0.179
5 0.257 0.280 0.311 0.165 0.177 0.181

Notes

Reproduce

cd veins-rust
cargo build --release
cd ../veins-cpprewrite
python3 bench/core_bench.py --repeats 5 --markdown-out bench/core_bench.md