Skip to content

Commit 2ad8bf7

Browse files
committed
[benchmarks] Rename column label SPEEDUP to RATIO
Since the results comparisons are now used to also compare code sizes in addition to runtimes, it makes sense to rename the column label to the more neutral term “ratio” instead of old “speedup”.
1 parent 2f4e70b commit 2ad8bf7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

benchmark/scripts/compare_perf_tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def __init__(self, comparator, old_branch, new_branch, changes_only,
487487
{0} ({1}): {2}"""
488488

489489
PERFORMANCE_TEST_RESULT_HEADER = ('TEST', 'MIN', 'MAX', 'MEAN', 'MAX_RSS')
490-
RESULT_COMPARISON_HEADER = ('TEST', 'OLD', 'NEW', 'DELTA', 'SPEEDUP')
490+
RESULT_COMPARISON_HEADER = ('TEST', 'OLD', 'NEW', 'DELTA', 'RATIO')
491491

492492
@staticmethod
493493
def header_for(result):

benchmark/scripts/test_compare_perf_tests.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -587,21 +587,21 @@ def test_column_headers(self):
587587
comparison_result = self.tc.increased[0]
588588
self.assertEquals(
589589
ReportFormatter.header_for(comparison_result),
590-
('TEST', 'OLD', 'NEW', 'DELTA', 'SPEEDUP')
590+
('TEST', 'OLD', 'NEW', 'DELTA', 'RATIO')
591591
)
592592
self.assert_markdown_contains([
593-
'TEST | OLD | NEW | DELTA | SPEEDUP',
593+
'TEST | OLD | NEW | DELTA | RATIO',
594594
'--- | --- | --- | --- | --- ',
595595
'TEST | MIN | MAX | MEAN | MAX_RSS'])
596596
self.assert_git_contains([
597-
'TEST OLD NEW DELTA SPEEDUP',
597+
'TEST OLD NEW DELTA RATIO',
598598
'TEST MIN MAX MEAN MAX_RSS'])
599599
self.assert_html_contains([
600600
"""
601601
<th align='left'>OLD</th>
602602
<th align='left'>NEW</th>
603603
<th align='left'>DELTA</th>
604-
<th align='left'>SPEEDUP</th>""",
604+
<th align='left'>RATIO</th>""",
605605
"""
606606
<th align='left'>MIN</th>
607607
<th align='left'>MAX</th>
@@ -764,12 +764,12 @@ class Test_compare_perf_tests_main(OldAndNewLog, FileSystemIntegration):
764764
"""Integration test that invokes the whole comparison script."""
765765
markdown = [
766766
'<summary>Regression (1)</summary>',
767-
'TEST | OLD | NEW | DELTA | SPEEDUP',
767+
'TEST | OLD | NEW | DELTA | RATIO',
768768
'BitCount | 3 | 9 | +199.9% | **0.33x**',
769769
]
770770
git = [
771771
'Regression (1):',
772-
'TEST OLD NEW DELTA SPEEDUP',
772+
'TEST OLD NEW DELTA RATIO',
773773
'BitCount 3 9 +199.9% **0.33x**',
774774
]
775775
html = ['<html>', "<td align='left'>BitCount</td>"]

0 commit comments

Comments
 (0)