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]
22fn sleep_1ms ( ) {
33 std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 1 ) ) ;
44}
55
6- #[ divan :: bench]
6+ #[ codspeed_divan_compat :: bench]
77fn sleep_10ms ( ) {
88 std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 10 ) ) ;
99}
1010
11- #[ divan :: bench]
11+ #[ codspeed_divan_compat :: bench]
1212fn sleep_50ms ( ) {
1313 std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 50 ) ) ;
1414}
1515
16- #[ divan :: bench]
16+ #[ codspeed_divan_compat :: bench]
1717fn 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 ) ]
2323fn sleep_100ms_with_custom_sample ( ) {
2424 std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 100 ) ) ;
2525}
You can’t perform that action at this time.
0 commit comments