From bb34991a5fcab0268aacd5725c08588f29c372a1 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Sat, 3 May 2025 15:25:15 +0100 Subject: [PATCH] Increase measurement time in benchmark configuration to 2000ms for improved accuracy --- benches/benchmarks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benches/benchmarks.rs b/benches/benchmarks.rs index fb9e683..cce0a6b 100644 --- a/benches/benchmarks.rs +++ b/benches/benchmarks.rs @@ -17,7 +17,7 @@ pub fn for_short_runs() -> Criterion { // limits the number of statistical data points. .sample_size(50) // measurement time per sample - .measurement_time(Duration::from_millis(250)) + .measurement_time(Duration::from_millis(2000)) // reduce warm-up time as well for faster overall run .warm_up_time(Duration::from_millis(50)) // You could also make it much shorter if needed, e.g., 50ms measurement, 100ms warm-up