It really helps to write to disk in a separate thread!
This commit is contained in:
parent
fa557cedd9
commit
9bcd18e7af
2 changed files with 4 additions and 2 deletions
|
|
@ -42,7 +42,8 @@ fn random_duration() -> Duration {
|
|||
// std::thread::sleep(sl)
|
||||
//
|
||||
let micros = 340f64 + sl * 200.;
|
||||
let micros = micros.max(0.001) * 4.;
|
||||
// 16 is max blocking threads
|
||||
let micros = micros.max(0.001) * 4. * 16.;
|
||||
Duration::from_micros(micros as u64)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue