Skip to content

Commit

Permalink
rand_distr: Port benchmarks to Criterion
Browse files Browse the repository at this point in the history
- The benchmarks are now living in their own crate. Therefore, this does
  not add any dev-dependencies to rand_distr.
- Instead of bytes per seconds, we now measure cycles per byte.

Refs #1039.
  • Loading branch information
vks committed Apr 25, 2021
1 parent 2582115 commit f308726
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 180 deletions.
22 changes: 22 additions & 0 deletions rand_distr/benches/Cargo.toml
@@ -0,0 +1,22 @@
[package]
name = "benches"
version = "0.0.0"
authors = ["The Rand Project Developers"]
license = "MIT OR Apache-2.0"
description = "Criterion benchmarks of the rand_distr crate"
edition = "2018"
publish = false

[workspace]

[dependencies]
criterion = { version = "0.3", features = ["html_reports"] }
criterion-cycles-per-byte = "0.1"
rand = { path = "../../" }
rand_distr = { path = "../" }
rand_pcg = { path = "../../rand_pcg/" }

[[bench]]
name = "distributions"
path = "src/distributions.rs"
harness = false
180 changes: 0 additions & 180 deletions rand_distr/benches/distributions.rs

This file was deleted.

0 comments on commit f308726

Please sign in to comment.