 }
 
 @inline(never)
-public func run_ReplaceSmallBuffer(_ N: Int) {
-  let data = sampleData(.medium)
-  let replacement = sampleData(.small)
-  let sz = replacement.count
-  replacement.withUnsafeBytes { (ptr: UnsafePointer<UInt8>) in
-    benchmark_ReplaceBuffer(N, 431..<809, data, UnsafeBufferPointer(start: ptr, count: sz))
-  }
-}
-
-@inline(never)
-public func run_ReplaceMediumBuffer(_ N: Int) {
-  let data = sampleData(.medium)
-  let replacement = sampleData(.medium)
-  let sz = replacement.count
-  replacement.withUnsafeBytes { (ptr: UnsafePointer<UInt8>) in
-    benchmark_ReplaceBuffer(N, 431..<809, data, UnsafeBufferPointer(start: ptr, count: sz))
-  }
-}
-
-@inline(never)
-public func run_ReplaceLargeBuffer(_ N: Int) {
-  let data = sampleData(.medium)
-  let replacement = sampleData(.large)
-  let sz = replacement.count
-  replacement.withUnsafeBytes { (ptr: UnsafePointer<UInt8>) in
-    benchmark_ReplaceBuffer(N, 431..<809, data, UnsafeBufferPointer(start: ptr, count: sz))
-  }
-}
-
-@inline(never)
 public func run_DataToStringEmpty(_ N: Int) {
   let d = Data()
   for _ in 0..<200 * N {

import Foundation

let d: [BenchmarkCategory] =  [.validation, .api, .Data]
let skip: [BenchmarkCategory] = [.validation, .api, .Data, .skip]

public let DataBenchmarks = [
  BenchmarkInfo(name: "DataCreateEmpty",

  }
}

@inline(never)
func replaceBuffer(
  _ N: Int,
  data: Data,
  subrange range: Range<Data.Index>,
  with replacement: Data
) {
  replacement.withUnsafeBytes { (bytes: UnsafePointer<UInt8>) in
    let buffer = UnsafeBufferPointer(start: bytes, count: replacement.count)

    for _ in 0..<10000*N {
      var copy = data
      copy.replaceSubrange(range, with: buffer)
    }
  }
}

