Merged
fix: 省略可选bandwidth_gbs的合法benchmark在会话报告阶段崩溃 #37
fix: 省略可选bandwidth_gbs的合法benchmark在会话报告阶段崩溃 #37
Merged
tianjunAdd on 29 days ago
Total: 1 files changed+1-1
@@ -451,7 +451,7 @@ def pytest_terminal_summary(terminalreporter, config):
451 status = '++'451 status = '++'
452 else:452 else:
453 status = '='453 status = '='
454- cur_bw = rec['bandwidth_gbs']454+ cur_bw = rec.get('bandwidth_gbs')
455 line = f'{display_key:<{kw}} {current_us:>8.1f} us {_fmt_bw(cur_bw):>11} {ratio:>7.2f}x {status:>4}'455 line = f'{display_key:<{kw}} {current_us:>8.1f} us {_fmt_bw(cur_bw):>11} {ratio:>7.2f}x {status:>4}'
456 for ek in extras_keys:456 for ek in extras_keys:
457 w = ek_widths[ek]457 w = ek_widths[ek]