logoalt Hacker News

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

29 points • by witcher • yesterday at 6:20 PM • 5 comments • view on HN

Comments

syntacticsalt • yesterday at 11:10 PM

As far as I could tell, benchstat seems to implicitly make a location-shift assumption in its interpretation of the Mann-Whitney U test, and I don't see why that assumption would hold.

tsenart • yesterday at 6:31 PM

At last someone does this!

➕ show 1 reply
jauntywundrkind • yesterday at 10:10 PM

I just keep asking the agent to throw `hyperfine` and or /`criteron` at things and hoping it's enough.

Not a super clear sell here, to me, coming from this position of ignorance. I'd love to have better background, to compare, to know more. I'll try and see, I guess! This at least sounds not so bad:

> I built benchfmt.rs, a zero-dependency Rust benchmark runner with a thread-local heap allocation counter, pprof profiler integration, and the same CLI flags as go test -bench. For those who don’t trust a new benchmarking runtime (you shouldn’t from the start!), it also ships a Criterion and libtest converter that emits Go’s benchfmt format directly.

lamaquina • yesterday at 8:30 PM

Wow this is sweet

mlkmn • yesterday at 9:20 PM

[flagged]