Skip to content

Commit 84e7d4d

Browse files
committed
[benchmark] Adjust Driver’s console output format
…to handle longer benchmark names, assuming maximum length of 40 characters.
1 parent de86e4f commit 84e7d4d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

benchmark/scripts/Benchmark_Driver

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class BenchmarkDriver(object):
200200
with open(log_file, 'w') as f:
201201
f.write(output)
202202

203-
RESULT = '{:>3} {:<25} {:>7} {:>7} {:>6} {:>10} {:>6} {:>7} {:>10}'
203+
RESULT = '{:>3} {:<40} {:>7} {:>7} {:>6} {:>10} {:>6} {:>7} {:>10}'
204204

205205
def run_and_log(self, csv_console=True):
206206
"""Run benchmarks and continuously log results to the console.

benchmark/scripts/test_Benchmark_Driver.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,10 @@ def mock_run(test):
366366
self.assertEqual(log, header + csv_log)
367367
self.assertEqual(
368368
out.getvalue(),
369-
' # TEST SAMPLES MIN(μs) Q1(μs)' +
370-
' MEDIAN(μs) Q3(μs) MAX(μs) MAX_RSS(B)\n' +
371-
' 3 b1 5 101 102' +
372-
' 103 104 105 888\n' +
369+
' # TEST SAMPLES MIN(μs)' +
370+
' Q1(μs) MEDIAN(μs) Q3(μs) MAX(μs) MAX_RSS(B)\n' +
371+
' 3 b1 5 101' +
372+
' 102 103 104 105 888\n' +
373373
'\n' +
374374
'Total performance tests executed: 1\n')
375375

0 commit comments

Comments
 (0)