Skip to content

Commit 8eab434

Browse files
authored
[Benches] Fix compare script failure (#21391)
The `name` field have been removed recently from the `Result` object. Update `compare.py` to use the `label` field instead. Ref. #21233
1 parent 251f0b3 commit 8eab434

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

devops/scripts/benchmarks/compare.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ def reset_aggregate() -> dict:
154154
}
155155

156156
# Add every benchmark run to average_aggregate:
157-
if test_run.name not in average_aggregate:
158-
average_aggregate[test_run.name] = reset_aggregate()
157+
if test_run.label not in average_aggregate:
158+
average_aggregate[test_run.label] = reset_aggregate()
159159
else:
160-
average_aggregate[test_run.name]["aggregate"].add(test_run.value)
160+
average_aggregate[test_run.label]["aggregate"].add(test_run.value)
161161

162162
return {
163163
name: BenchmarkHistoricAverage(

0 commit comments

Comments
 (0)