Skip to content

Commit 08604ea

Browse files
committed
Fix colliding fields; match old format more closely
1 parent 30b3763 commit 08604ea

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

benchmark/utils/DriverUtils.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ final class TestRunner {
624624
if justify == .right {
625625
printSpaces(pad)
626626
}
627-
print(s)
627+
print(s, terminator: "")
628628
if justify == .left {
629629
printSpaces(pad)
630630
}
@@ -648,9 +648,11 @@ final class TestRunner {
648648

649649
func printText(index: Int, info: BenchmarkInfo, results: BenchResults?) {
650650
printToWidth(index.description, width: 4, justify: .right)
651+
printSpaces(1)
651652
printToWidth(info.name, width: c.testNameLength)
652653

653654
if let results = results {
655+
printToWidth(String(describing:results.samples.count), width: 10, justify: .right)
654656
if results.samples.count > 0 {
655657
let min = results.samples.sorted().first!
656658
printDoubleToWidth(min, width: 10)
@@ -662,8 +664,10 @@ final class TestRunner {
662664

663665
func printTextHeading() {
664666
printToWidth("#", width: 4, justify: .right)
665-
printToWidth("Name", width: c.testNameLength, justify: .left)
666-
printToWidth("Minimum", width: 10, justify: .right)
667+
printSpaces(1)
668+
printToWidth("TEST", width: c.testNameLength, justify: .left)
669+
printToWidth("SAMPLES", width: 10, justify: .right)
670+
printToWidth("MIN", width: 10, justify: .right)
667671
print()
668672
}
669673

0 commit comments

Comments
 (0)