Skip to content

Commit

Permalink
Remove wall clock metric
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Dec 16, 2023
1 parent 32c92aa commit aace8cf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Benchmarks/Benchmarks/HTTP1/HTTP1ChannelBenchmarks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ extension Benchmark {
}

let benchmarks = {
Benchmark.defaultConfiguration = .init(
metrics: [
.cpuTotal,
.throughput,
.mallocCountTotal,
.peakMemoryResident,
],
warmupIterations: 10
)
let buffer = ByteBufferAllocator().buffer(repeating: 0xff, count: 10000)
Benchmark(
name: "HTTP1:GET",
Expand Down
9 changes: 9 additions & 0 deletions Benchmarks/Benchmarks/Router/Benchmarks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
import Benchmark

let benchmarks = {
Benchmark.defaultConfiguration = .init(
metrics: [
.cpuTotal,
.throughput,
.mallocCountTotal,
.peakMemoryResident,
],
warmupIterations: 10
)
trieRouterBenchmarks()
routerBenchmarks()
}

0 comments on commit aace8cf

Please sign in to comment.