Hacker Newsbenchmark4h agoenergy 108
Benchfmt.rs: Bringing Go's benchmarking and benchstat workflow to Rust

image: Hacker News
TL;DR: I built benchfmt.rs, a zero-dependency Rust benchmark runner and Criterion converter for Go’s benchstat. It adds /key=value projections, heap tracking for allocated bytes (B/op) and objects (allocs/op) per op, and pprof profiling. In this post, I am benchmarking varint and Prometheus Remote Write 2.0 decoding across Go and Rust to showcase the benefits of benchstat-like flow in Rust. I’m also sharing some fun learnings on the way (e.g., yes Rust is faster).
This source publishes only a summary in its feed, so the full article lives at the outlet. The link above and below goes to the original.