File tree 1 file changed +13
-8
lines changed 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -421,14 +421,19 @@ impl InputData {
421
421
422
422
// benchmark exists, but might have runs missing
423
423
if let Ok ( benchmark) = entry {
424
- let missing_runs = known_runs[ benchmark_name]
425
- . iter ( )
426
- . filter ( |rname| !benchmark. runs . iter ( ) . any ( |r| * r == * * rname) )
427
- . collect :: < Vec < _ > > ( ) ;
428
- if !missing_runs. is_empty ( ) {
429
- let before = benchmark. runs . len ( ) ;
430
- fill_benchmark_runs ( benchmark, missing_runs, & mut assoc) ;
431
- assert_ne ! ( before, benchmark. runs. len( ) , "made progress" ) ;
424
+ // If we've not had a benchmark at all in the last few
425
+ // commits then just skip run interpolation for it; the
426
+ // benchmark should get total-benchmark interpolated.
427
+ if let Some ( known_runs) = known_runs. get ( benchmark_name) {
428
+ let missing_runs = known_runs
429
+ . iter ( )
430
+ . filter ( |rname| !benchmark. runs . iter ( ) . any ( |r| * r == * * rname) )
431
+ . collect :: < Vec < _ > > ( ) ;
432
+ if !missing_runs. is_empty ( ) {
433
+ let before = benchmark. runs . len ( ) ;
434
+ fill_benchmark_runs ( benchmark, missing_runs, & mut assoc) ;
435
+ assert_ne ! ( before, benchmark. runs. len( ) , "made progress" ) ;
436
+ }
432
437
}
433
438
}
434
439
}
You can’t perform that action at this time.
0 commit comments