#benchmark #stable #unstable #runner #filtering #libtest #port

dev bencher

A port of the libtest (unstable Rust) benchmark runner to Rust stable releases. Supports running benchmarks and filtering based on the name. Benchmark execution works exactly the same way and no more (caveat: black_box is still missing!).

6 releases

Uses old Rust 2015

0.1.5 Jan 6, 2018
0.1.4 Aug 19, 2017
0.1.3 Jul 28, 2017
0.1.2 Dec 17, 2016
0.1.1 Aug 21, 2016

#56 in Profiling

Download history 26558/week @ 2024-03-14 27358/week @ 2024-03-21 23974/week @ 2024-03-28 29378/week @ 2024-04-04 27111/week @ 2024-04-11 31405/week @ 2024-04-18 34376/week @ 2024-04-25 42640/week @ 2024-05-02 38395/week @ 2024-05-09 36857/week @ 2024-05-16 34480/week @ 2024-05-23 39226/week @ 2024-05-30 30103/week @ 2024-06-06 43092/week @ 2024-06-13 37187/week @ 2024-06-20 28621/week @ 2024-06-27

145,360 downloads per month
Used in 360 crates (274 directly)

MIT/Apache

57KB
1.5K SLoC

A port of the libtest (unstable Rust) benchmark runner to Rust stable releases. Supports running benchmarks and filtering based on the name. Benchmark execution works exactly the same way and no more (Warning: black_box is not working perfectly!).

Please read the API documentation here (it includes a usage example).

build_status

Recent Changes

  • 0.1.5
    • Support trailing commas in the macros by @tbu-
  • 0.1.4
    • Add crates.io categories
  • 0.1.3
    • Fix doc URL
    • Fix clippy warnings (by @llogiq)
  • 0.1.2
    • Remove unused components (speeds up build time of the crate)
  • 0.1.1
    • Add a provisional implementation of black_box. It's not as good as the original version. (Since reproducibility is key, we will use the same implementation on both stable and nightly.)
    • Add example for how to set up this to run with cargo bench on stable. This crate is itself an example of that, see Cargo.toml and benches/
  • 0.1.0
    • Initial release

Authors

Principal original authors of the benchmark and statistics code in the Rust project are:

  • Brian Anderson
  • Graydon Hoare

Very very many have contributed to lib.rs and stats.rs however, so author credit is due to:

  • The Rust Project Developers

License

Dual-licensed just like the Rust project.

Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 or the MIT license http://opensource.org/licenses/MIT, at your option. This file may not be copied, modified, or distributed except according to those terms.

No runtime deps