Skip to content

Commit 19cc9b1

Browse files
committed
fix(divan_compat): use divan compat in benches
1 parent e476e55 commit 19cc9b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/divan_compat/benches/sleep_benches.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
#[divan::bench]
1+
#[codspeed_divan_compat::bench]
22
fn sleep_1ms() {
33
std::thread::sleep(std::time::Duration::from_millis(1));
44
}
55

6-
#[divan::bench]
6+
#[codspeed_divan_compat::bench]
77
fn sleep_10ms() {
88
std::thread::sleep(std::time::Duration::from_millis(10));
99
}
1010

11-
#[divan::bench]
11+
#[codspeed_divan_compat::bench]
1212
fn sleep_50ms() {
1313
std::thread::sleep(std::time::Duration::from_millis(50));
1414
}
1515

16-
#[divan::bench]
16+
#[codspeed_divan_compat::bench]
1717
fn sleep_100ms() {
1818
std::thread::sleep(std::time::Duration::from_millis(100));
1919
}
2020

2121
// Tests COD-1044, do not modify the sample size or count!
22-
#[divan::bench(sample_size = 3, sample_count = 6)]
22+
#[codspeed_divan_compat::bench(sample_size = 3, sample_count = 6)]
2323
fn sleep_100ms_with_custom_sample() {
2424
std::thread::sleep(std::time::Duration::from_millis(100));
2525
}

0 commit comments

Comments
 (0)