2 Commits

Author SHA1 Message Date
Palash Tyagi
9c31d44f8a Merge bb34991a5f into aeaf936380 2025-05-03 14:25:20 +00:00
Palash Tyagi
bb34991a5f Increase measurement time in benchmark configuration to 2000ms for improved accuracy 2025-05-03 15:25:15 +01:00

View File

@@ -17,7 +17,7 @@ pub fn for_short_runs() -> Criterion {
// limits the number of statistical data points. // limits the number of statistical data points.
.sample_size(50) .sample_size(50)
// measurement time per sample // 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 // reduce warm-up time as well for faster overall run
.warm_up_time(Duration::from_millis(50)) .warm_up_time(Duration::from_millis(50))
// You could also make it much shorter if needed, e.g., 50ms measurement, 100ms warm-up // You could also make it much shorter if needed, e.g., 50ms measurement, 100ms warm-up