File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
crates/divan_compat/benches Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- #[ divan :: bench]
1
+ #[ codspeed_divan_compat :: bench]
2
2
fn sleep_1ms ( ) {
3
3
std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 1 ) ) ;
4
4
}
5
5
6
- #[ divan :: bench]
6
+ #[ codspeed_divan_compat :: bench]
7
7
fn sleep_10ms ( ) {
8
8
std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 10 ) ) ;
9
9
}
10
10
11
- #[ divan :: bench]
11
+ #[ codspeed_divan_compat :: bench]
12
12
fn sleep_50ms ( ) {
13
13
std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 50 ) ) ;
14
14
}
15
15
16
- #[ divan :: bench]
16
+ #[ codspeed_divan_compat :: bench]
17
17
fn sleep_100ms ( ) {
18
18
std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 100 ) ) ;
19
19
}
20
20
21
21
// 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 ) ]
23
23
fn sleep_100ms_with_custom_sample ( ) {
24
24
std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 100 ) ) ;
25
25
}
You can’t perform that action at this time.
0 commit comments