Skip to content

Commit 8a3a730

Browse files
committed
---
yaml --- r: 346045 b: refs/heads/master c: dc95fff h: refs/heads/master i: 346043: 292e589
1 parent 352a31c commit 8a3a730

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: e41980ad164e9de02bbacccaa2272221af2742d4
2+
refs/heads/master: dc95fff2561a3dd4f8111cefb9c3f3f9d4370387
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/benchmark/utils/DriverUtils.swift

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -198,23 +198,24 @@ struct TestConfig {
198198
""")
199199
}
200200

201-
if verbose {
202-
let testList = tests.map({ $0.1.name }).joined(separator: ", ")
203-
print("""
204-
--- CONFIG ---
205-
NumSamples: \(numSamples ?? 0)
206-
Verbose: \(verbose)
207-
LogMemory: \(logMemory)
208-
SampleTime: \(sampleTime)
209-
NumIters: \(numIters ?? 0)
210-
Quantile: \(quantile ?? 0)
211-
Delimiter: \(String(reflecting: delim))
212-
Tests Filter: \(c.tests ?? [])
213-
Tests to run: \(testList)
214-
215-
--- DATA ---\n
216-
""")
217-
}
201+
// We always prepare the configuration string and call the print to have
202+
// the same memory usage baseline between verbose and normal mode.
203+
let testList = tests.map({ $0.1.name }).joined(separator: ", ")
204+
let configuration = """
205+
--- CONFIG ---
206+
NumSamples: \(numSamples ?? 0)
207+
Verbose: \(verbose)
208+
LogMemory: \(logMemory)
209+
SampleTime: \(sampleTime)
210+
NumIters: \(numIters ?? 0)
211+
Quantile: \(quantile ?? 0)
212+
Delimiter: \(String(reflecting: delim))
213+
Tests Filter: \(c.tests ?? [])
214+
Tests to run: \(testList)
215+
216+
--- DATA ---\n
217+
"""
218+
print(verbose ? configuration : "", terminator:"")
218219
}
219220

220221
/// Returns the list of tests to run.

0 commit comments

Comments
 (0)