Skip to content

Commit fcbea8b

Browse files
committed
[Perf script] Fix output format for compare script
1 parent 9e3f57e commit fcbea8b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benchmark/scripts/compare_perf_tests.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def is_max_score(newscore, maxscore, invert):
8787

8888

8989
def compare_scores(key, score1, worstsample1, score2, worstsample2, runs, num):
90-
print(num.rjust(3), end="")
90+
print(num.rjust(3), end=" ")
9191
print(key.ljust(25), end="")
9292
bestscore1 = None
9393
bestscore2 = None
@@ -202,16 +202,16 @@ def usage():
202202
else:
203203
print(file2, "/", file1)
204204

205-
print("#".rjust(3), end="")
205+
print("#".rjust(3), end=" ")
206206
print("TEST".ljust(25), end="")
207207
if PrintAllScores:
208208
for i in range(0, runs):
209209
print(("OLD_RUN%d" % i).rjust(9), end="")
210210
for i in range(0, runs):
211211
print(("NEW_RUN%d" % i).rjust(9), end="")
212212
else:
213-
print("BEST_OLD_MIN(μs)".rjust(17), end="")
214-
print("BEST_NEW_MIN(μs)".rjust(17), end="")
213+
print("BEST_OLD_MIN(μs)".rjust(17), end=" ")
214+
print("BEST_NEW_MIN(μs)".rjust(17), end=" ")
215215
print('DELTA'.rjust(9), '%DELTA'.rjust(9), 'SPEEDUP'.rjust(9))
216216

217217
for key in keys:

0 commit comments

Comments
 (0)