bheisler/criterion.rs
View on GitHub ↗ ★ 5,549 Rust
Statistics-driven benchmarking library for Rust
4 mentions on Hacker News by 4 people: 0 stories, 4 comments · first 2022-10-23 · latest 2025-02-19
20082026
-
…It's probably better to set up an actual benchmark using a crate like Criterion instead [0]. [0] https://github.com/bheisler/criterion.rs
comment by sagacity · 2025-02-19 · in Parsing JSON in 500 lines of Rust -
…of the delta from a previous benchmark, and to run async code. Wonder how this stacks up. [1] https://github.com/bheisler/criterion.rs/pull/722
comment by vlovich123 · 2023-10-05 · in Divan: Fast and Simple Benchmarking for Rust -
https://github.com/bheisler/criterion.rs is good for tests like that. It will give you much more than a single number and handle things like outliers. This makes identifying noisy tests simpler.
comment by viraptor · 2022-11-30 · in How much does Rust's bounds checking cost? -
Criterion is still the gold standard. Pros for Criterion over the stdlib: https://github.com/bheisler/criterion.rs#features Downsides of Criterion: https://bheisler.github.io/criterion.rs/book/user_guide/know...
comment by throwup · 2022-10-23 · in How Rust 1.64 became faster on Windows