[libcxx-commits] [libcxx] c6f3b20 - [libc++] Disable the generation of relative deltas in compare-benchmarks --kpis
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Dec 17 07:01:16 PST 2025
Author: Louis Dionne
Date: 2025-12-17T10:01:05-05:00
New Revision: c6f3b202792d3dae3e01a1d156482d75205cea29
URL: https://github.com/llvm/llvm-project/commit/c6f3b202792d3dae3e01a1d156482d75205cea29
DIFF: https://github.com/llvm/llvm-project/commit/c6f3b202792d3dae3e01a1d156482d75205cea29.diff
LOG: [libc++] Disable the generation of relative deltas in compare-benchmarks --kpis
This turns out to be more confusing than anything.
Added:
Modified:
libcxx/utils/compare-benchmarks
Removed:
################################################################################
diff --git a/libcxx/utils/compare-benchmarks b/libcxx/utils/compare-benchmarks
index 63e1e6bff3f73..19ab453132fd9 100755
--- a/libcxx/utils/compare-benchmarks
+++ b/libcxx/utils/compare-benchmarks
@@ -112,13 +112,6 @@ def produce_kpis(data, noise, extrema, series, series_names, meta_candidate, tit
baseline = series[0]
for (i, candidate) in enumerate(series[1:], start=1):
kpis = compute_kpis(baseline, candidate)
- if i > 1: # after the first series, also generate a relative
diff erence
- previous_kpis = columns[-1]
- rel_deltas = [(kpis[k] - previous_kpis[k]) / previous_kpis[k] for k in range(len(kpis))]
- headers.append('rel Δ')
- columns.append(rel_deltas)
- fmt.append('+.2%')
-
headers.append(series_names[i])
columns.append(kpis)
fmt.append('.2%')
More information about the libcxx-commits
mailing list