@@ -17,7 +17,7 @@ fn add_one_torrent(c: &mut Criterion) {
1717 let mut group = c. benchmark_group ( "add_one_torrent" ) ;
1818
1919 group. warm_up_time ( Duration :: from_millis ( 500 ) ) ;
20- group. measurement_time ( Duration :: from_millis ( 1000 ) ) ;
20+ group. measurement_time ( Duration :: from_secs ( 1 ) ) ;
2121
2222 group. bench_function ( "RwLockStd" , |b| {
2323 b. iter_custom ( sync:: add_one_torrent :: < TorrentsRwLockStd , _ > ) ;
@@ -74,7 +74,7 @@ fn add_multiple_torrents_in_parallel(c: &mut Criterion) {
7474 //group.sample_size(10);
7575
7676 group. warm_up_time ( Duration :: from_millis ( 500 ) ) ;
77- group. measurement_time ( Duration :: from_millis ( 1000 ) ) ;
77+ group. measurement_time ( Duration :: from_secs ( 1 ) ) ;
7878
7979 group. bench_function ( "RwLockStd" , |b| {
8080 b. to_async ( & rt)
@@ -138,7 +138,7 @@ fn update_one_torrent_in_parallel(c: &mut Criterion) {
138138 //group.sample_size(10);
139139
140140 group. warm_up_time ( Duration :: from_millis ( 500 ) ) ;
141- group. measurement_time ( Duration :: from_millis ( 1000 ) ) ;
141+ group. measurement_time ( Duration :: from_secs ( 1 ) ) ;
142142
143143 group. bench_function ( "RwLockStd" , |b| {
144144 b. to_async ( & rt)
@@ -202,7 +202,7 @@ fn update_multiple_torrents_in_parallel(c: &mut Criterion) {
202202 //group.sample_size(10);
203203
204204 group. warm_up_time ( Duration :: from_millis ( 500 ) ) ;
205- group. measurement_time ( Duration :: from_millis ( 1000 ) ) ;
205+ group. measurement_time ( Duration :: from_secs ( 1 ) ) ;
206206
207207 group. bench_function ( "RwLockStd" , |b| {
208208 b. to_async ( & rt)
0 commit comments