You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pub fn criterion_benchmark_calc_path(c: &mut Criterion) {
let runtime = Builder::new_multi_thread().enable_all().build().unwrap();
c.bench_function("calc_path", |b| {
b.to_async(&runtime).iter_custom(|iters| async{
let mut olist = PathManager::get_list().await;
let start = Instant::now();
let _ = pm.calculate();
start.elapsed()
})
});
}
When I run this bench, it returns 0 as time, but this doesnt make sense. When I add some noise with sleep, it returns only the sleep duration. Is there any known limitation to the async bencher?
The text was updated successfully, but these errors were encountered:
Hello,
I have the following bench:
When I run this bench, it returns 0 as time, but this doesnt make sense. When I add some noise with sleep, it returns only the sleep duration. Is there any known limitation to the async bencher?
The text was updated successfully, but these errors were encountered: