Skip to content

Commit 10d282b

Browse files
committed
adjust benchmark thresholds
1 parent 32e05e4 commit 10d282b

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

Benchmarks/Benchmarks/PrometheusBenchmarks/Benchmarks.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public func makeLabels(_ idx: Int) -> [(String, String)] {
2929

3030
let benchmarks = {
3131
let ciMetrics: [BenchmarkMetric] = [
32-
.mallocCountTotal,
32+
.mallocCountTotal
3333
]
3434
let localMetrics = BenchmarkMetric.default
3535

@@ -60,8 +60,9 @@ let benchmarks = {
6060
runDurationHistogramBench(benchmark.scaledIterations)
6161
}
6262

63-
Benchmark("RegistryEmit - 5000 metrics",
64-
configuration: .init(scalingFactor: .one))
63+
Benchmark(
64+
"RegistryEmit - 5000 metrics",
65+
configuration: .init(scalingFactor: .one))
6566
{ benchmark, run in
6667
for _ in benchmark.scaledIterations {
6768
run()

Benchmarks/Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ let package = Package(
2929
name: "PrometheusBenchmarks",
3030
dependencies: [
3131
.product(name: "Benchmark", package: "package-benchmark"),
32-
.product(name: "Prometheus", package: "swift-prometheus"),
32+
.product(name: "Prometheus", package: "swift-prometheus")
3333
],
3434
path: "Benchmarks/PrometheusBenchmarks",
3535
plugins: [
36-
.plugin(name: "BenchmarkPlugin", package: "package-benchmark"),
36+
.plugin(name: "BenchmarkPlugin", package: "package-benchmark")
3737
]
3838
),
3939
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"mallocCountTotal" : 2
2+
"mallocCountTotal" : 1
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"mallocCountTotal" : 2
2+
"mallocCountTotal" : 1
33
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"mallocCountTotal" : 2
2+
"mallocCountTotal" : 1
33
}

0 commit comments

Comments
 (0)