                       maxRSS: UInt64(sampler.measureMemoryUsage()))
 }
 
-func printRunInfo(_ c: TestConfig) {
-  if c.verbose {
-    print("--- CONFIG ---")
-    print("NumSamples: \(c.numSamples)")
-    print("Verbose: \(c.verbose)")
-    print("IterScale: \(c.iterationScale)")
-    if c.fixedNumIters != 0 {
-      print("FixedIters: \(c.fixedNumIters)")
-    }
-    print("Tests Filter: \(c.filters)")
-    print("Tests to run: ", terminator: "")
-    print(c.tests.map({ $0.1.name }).joined(separator: ", "))
-    print("")
-    print("--- DATA ---")
-  }
-}
-
 /// Execute benchmarks and continuously report the measurement results.
 func runBenchmarks(_ c: TestConfig) {
   let withUnit = {$0 + "(us)"}

    guard let benchArgs = parseArgs(validOptions) else {
      throw ArgumentError.general("Failed to parse arguments")
    }

    filters = benchArgs.positionalArgs

    func checked<T>(
      _ parse: (String) throws -> T?,

  let afterRunSleep: Int?

  /// The list of tests to run.
  let tests: [(index: String, info: BenchmarkInfo)]

  let action: TestAction

  init(_ registeredBenchmarks: [BenchmarkInfo]) throws {

    struct PartialTestConfig {
      var delim: String?
      var tags, skipTags: Set<BenchmarkCategory>?
      var iterationScale, numSamples, afterRunSleep: Int?
      var fixedNumIters: UInt?
      var verbose: Bool?
      var action: TestAction?
      var filters: [String]?
    }
    var c = PartialTestConfig()

