aboutsummaryrefslogtreecommitdiff
path: root/libcxx/utils/compare-benchmarks
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/utils/compare-benchmarks')
-rwxr-xr-xlibcxx/utils/compare-benchmarks2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/utils/compare-benchmarks b/libcxx/utils/compare-benchmarks
index d165c73..b5bd880 100755
--- a/libcxx/utils/compare-benchmarks
+++ b/libcxx/utils/compare-benchmarks
@@ -72,7 +72,7 @@ def plain_text_comparison(data, metric, baseline_name=None, candidate_name=None)
geomean_0 = statistics.geometric_mean(data[f'{metric}_0'].dropna())
geomean_1 = statistics.geometric_mean(data[f'{metric}_1'].dropna())
geomean_row = ['Geomean', geomean_0, geomean_1, (geomean_1 - geomean_0), (geomean_1 - geomean_0) / geomean_0]
- table.loc[table.index.max()] = geomean_row
+ table.loc[table.index.max() + 1] = geomean_row
return tabulate.tabulate(table.set_index('benchmark'), headers=headers, floatfmt=fmt, numalign='right')