Skip to content

Commit

Permalink
Update dev-dependency rand to 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Feb 21, 2025
1 parent ded2cb6 commit 3a1756f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ version = "0.8.0"
default-features = false

[dev-dependencies]
rand = "0.8"
rand = "0.9"
serde_json = "1.0"

[features]
Expand Down
10 changes: 3 additions & 7 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,16 @@ extern crate test;

use bit_set::BitSet;
use bit_vec::BitVec;
use rand::{rngs::ThreadRng, thread_rng, RngCore};

use rand::RngCore;
use test::{black_box, Bencher};

const BENCH_BITS: usize = 1 << 14;
const BITS: usize = 32;

fn rng() -> ThreadRng {
thread_rng()
}

#[bench]
fn bench_bit_vecset_small(b: &mut Bencher) {
let mut r = rng();
let mut r = rand::rng();
let mut bit_vec = BitSet::new();
b.iter(|| {
for _ in 0..100 {
Expand All @@ -42,7 +38,7 @@ fn bench_bit_vecset_small(b: &mut Bencher) {

#[bench]
fn bench_bit_vecset_big(b: &mut Bencher) {
let mut r = rng();
let mut r = rand::rng();
let mut bit_vec = BitSet::new();
b.iter(|| {
for _ in 0..100 {
Expand Down

0 comments on commit 3a1756f

Please sign in to comment.