Get the latest tech news

Benchfmt.rs: Bringing Go's benchmarking and benchstat workflow to Rust


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).

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Rust

Rust

Photo of benchmarking

benchmarking

Photo of Benchfmt.rs

Benchfmt.rs

Related news:

News photo

systemd With Its Initial Support For Rust

News photo

Show HN: OmniDiff – Opensource, super fast, content aware Git difftool, in Rust

News photo

OpenIDEA: The IDE you know, rebuilt in Rust