Move rand benches to their own crate
This commit is contained in:
parent
d507f7e81b
commit
6f917e1f16
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -79,7 +79,7 @@ jobs:
|
||||
run: |
|
||||
cargo test --target ${{ matrix.target }} --features=nightly
|
||||
cargo test --target ${{ matrix.target }} --all-features
|
||||
cargo test --target ${{ matrix.target }} --benches --features=small_rng,nightly
|
||||
cargo test --target ${{ matrix.target }} --manifest-path rand_benches/Cargo.toml --benches --features=small_rng,nightly
|
||||
cargo test --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --benches
|
||||
cargo test --target ${{ matrix.target }} --lib --tests --no-default-features
|
||||
- name: Test rand
|
||||
|
22
Cargo.toml
22
Cargo.toml
@ -58,6 +58,7 @@ unbiased = []
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
"rand_benches",
|
||||
"rand_core",
|
||||
"rand_distr",
|
||||
"rand_chacha",
|
||||
@ -76,24 +77,3 @@ rand_pcg = { path = "rand_pcg", version = "=0.9.0-alpha.1" }
|
||||
# Only to test serde1
|
||||
bincode = "1.2.1"
|
||||
rayon = "1.5.3"
|
||||
criterion = "0.5"
|
||||
|
||||
[[bench]]
|
||||
name = "uniform"
|
||||
path = "benches/uniform.rs"
|
||||
harness = false
|
||||
|
||||
[[bench]]
|
||||
name = "seq_choose"
|
||||
path = "benches/seq_choose.rs"
|
||||
harness = false
|
||||
|
||||
[[bench]]
|
||||
name = "shuffle"
|
||||
path = "benches/shuffle.rs"
|
||||
harness = false
|
||||
|
||||
[[bench]]
|
||||
name = "uniform_float"
|
||||
path = "benches/uniform_float.rs"
|
||||
harness = false
|
||||
|
32
rand_benches/Cargo.toml
Normal file
32
rand_benches/Cargo.toml
Normal file
@ -0,0 +1,32 @@
|
||||
[package]
|
||||
name = "rand_benches"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
||||
[dev-dependencies]
|
||||
rand = { path = "..", features = ["small_rng", "nightly"] }
|
||||
rand_pcg = { path = "../rand_pcg" }
|
||||
rand_chacha = { path = "../rand_chacha" }
|
||||
criterion = "0.5"
|
||||
|
||||
[[bench]]
|
||||
name = "uniform"
|
||||
path = "benches/uniform.rs"
|
||||
harness = false
|
||||
|
||||
[[bench]]
|
||||
name = "seq_choose"
|
||||
path = "benches/seq_choose.rs"
|
||||
harness = false
|
||||
|
||||
[[bench]]
|
||||
name = "shuffle"
|
||||
path = "benches/shuffle.rs"
|
||||
harness = false
|
||||
|
||||
[[bench]]
|
||||
name = "uniform_float"
|
||||
path = "benches/uniform_float.rs"
|
||||
harness = false
|
3
rand_benches/src/main.rs
Normal file
3
rand_benches/src/main.rs
Normal file
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
println!("Please use `cargo bench` to run the benchmarks instead.");
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user