Skip to content

Commit b8e023a

Browse files
committed
Make the default output a little more like the old version (for now)
1 parent a63adc9 commit b8e023a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

benchmark/utils/DriverUtils.swift

+8-1
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,13 @@ final class TestRunner {
654654
if let results = results {
655655
printToWidth(String(describing:results.samples.count), width: 10, justify: .right)
656656
if results.samples.count > 0 {
657-
let min = results.samples.sorted().first!
657+
let sorted = results.samples.sorted()
658+
let min = sorted.first!
659+
let max = sorted.last!
660+
let median = sorted[sorted.count / 2]
658661
printDoubleToWidth(min, width: 10)
662+
printDoubleToWidth(median, width: 10)
663+
printDoubleToWidth(max, width: 10)
659664
}
660665
}
661666
print()
@@ -668,6 +673,8 @@ final class TestRunner {
668673
printToWidth("TEST", width: c.testNameLength, justify: .left)
669674
printToWidth("SAMPLES", width: 10, justify: .right)
670675
printToWidth("MIN", width: 10, justify: .right)
676+
printToWidth("MEDIAN", width: 10, justify: .right)
677+
printToWidth("MAX", width: 10, justify: .right)
671678
print()
672679
}
673680

0 commit comments

Comments
 (0)