     c.numIters ?? {
       let (numIters, oneIter) = iterationsPerSampleTime()
       if numIters == 1 { addSample(oneIter) }
-      else { sampler.resetMeasurements() } // for accurate yielding reports
+      else { resetMeasurements() } // for accurate yielding reports
       return numIters
     }())
 
   logVerbose("    Measuring with scale \(numIters).")
   for _ in samples.count..<c.numSamples {
-    addSample(sampler.measure(test.name, fn: testFn, numIters: numIters))
+    addSample(measure(test.name, fn: testFn, numIters: numIters))
   }
 
   test.tearDownFunction?()
 
-  return BenchResults(samples, maxRSS: sampler.measureMemoryUsage())
+  return BenchResults(samples, maxRSS: measureMemoryUsage())
 }
 
 /// Execute benchmarks and continuously report the measurement results.
-func runBenchmarks(_ c: TestConfig) {
+func runBenchmarks() {
   let withUnit = {$0 + "(us)"}
   let header = (
     ["#", "TEST", "SAMPLES"] +

  }
  logVerbose("Running \(test.name) for \(c.numSamples) samples.")

  let sampler = SampleRunner(c)
  var samples: [Int] = []
  samples.reserveCapacity(c.numSamples)


  func measureMemoryUsage() -> Int {
    let current = SampleRunner.getResourceUtilization()
    let maxRSS = current.ru_maxrss - baseline.ru_maxrss
    let pages = { maxRSS / sysconf(_SC_PAGESIZE) }
    func deltaEquation(_ stat: KeyPath<rusage, Int>) -> String {
      let b = baseline[keyPath: stat], c = current[keyPath: stat]
      return "\(c) - \(b) = \(c - b)"
    }
    logVerbose(
        """
            MAX_RSS \(deltaEquation(\rusage.ru_maxrss)) (\(pages()) pages)
            ICS \(deltaEquation(\rusage.ru_nivcsw))
            VCS \(deltaEquation(\rusage.ru_nvcsw))
        """)
    return maxRSS
  }

