Skip to content

Commit 38b0799

Browse files
committed
Update experiments dependencies
1 parent ce761d1 commit 38b0799

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

experiments/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ publish = false
66

77
[dependencies]
88
spin_sleep = { path = ".." }
9-
rand = "0.9"
9+
rand = "0.10"

experiments/src/bin/native_sleep_accuracy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Call OS native sleep for **1ns, 1µs & 1ms** and see how long it actually takes.
2+
use rand::RngExt;
23
use std::time::{Duration, Instant};
34

45
fn main() {
@@ -12,7 +13,6 @@ fn main() {
1213
eprintln!("Simulating {cpus} thread load");
1314
for _ in 0..cpus {
1415
std::thread::spawn(|| {
15-
use rand::Rng;
1616
let mut rng = rand::rng();
1717
while rng.random::<u64>() > 0 {}
1818
});

experiments/src/bin/spin_strategy_latency.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//! Measure `SpinStrategy` latencies and spin counts across various wait durations _5ms, 900µs, 5µs, 100ns_.
2+
use rand::RngExt;
23
use std::time::{Duration, Instant};
34

45
fn main() {
@@ -12,7 +13,6 @@ fn main() {
1213
eprintln!("Simulating {cpus} thread load");
1314
for _ in 0..cpus {
1415
std::thread::spawn(|| {
15-
use rand::Rng;
1616
let mut rng = rand::rng();
1717
while rng.random::<u64>() > 0 {}
1818
});

0 commit comments

Comments
 (0)