extra: reduce bench loop max time to 3s.

This commit is contained in:
Graydon Hoare 2013-07-15 20:34:11 -07:00
parent cdce33a421
commit 8e58a272cc

View File

@ -1019,8 +1019,8 @@ pub fn auto_bench(&mut self, f: &fn(&mut BenchHarness)) -> stats::Summary {
}
total_run += loop_run;
// Longest we ever run for is 10s.
if total_run > 10_000_000_000 {
// Longest we ever run for is 3s.
if total_run > 3_000_000_000 {
return summ5;
}