Skip to content

Commit aa01bf2

Browse files
committed
formatting fixes
1 parent 137eeff commit aa01bf2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Benchmarks/Benchmarks/PrometheusBenchmarks/Benchmarks.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ let benchmarks = {
3737
metrics: ProcessInfo.processInfo.environment["CI"] != nil ? ciMetrics : localMetrics,
3838
warmupIterations: 10,
3939
scalingFactor: .kilo,
40-
maxDuration: .seconds(5),
40+
maxDuration: .seconds(5)
4141
)
4242

4343
Benchmark("Counter - setup and increment") { benchmark in
@@ -62,8 +62,8 @@ let benchmarks = {
6262

6363
Benchmark(
6464
"RegistryEmit - 5000 metrics",
65-
configuration: .init(scalingFactor: .one))
66-
{ benchmark, run in
65+
configuration: .init(scalingFactor: .one)
66+
) { benchmark, run in
6767
for _ in benchmark.scaledIterations {
6868
run()
6969
}

Benchmarks/Benchmarks/PrometheusBenchmarks/RegistryEmit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public func setupRegistryExport(numberOfMetrics: Int) -> () -> Void {
2727
gaugeArray.reserveCapacity(numberOfMetrics)
2828
buffer.reserveCapacity(counterExportSize)
2929

30-
for i in 0 ..< (numberOfMetrics / 2) {
30+
for i in 0..<(numberOfMetrics / 2) {
3131
let counter = registryExport.makeCounter(name: "http_requests_total", labels: makeLabels(i))
3232
counter.increment()
3333
counterArray.append(counter)

Benchmarks/Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import PackageDescription
1818
let package = Package(
1919
name: "benchmarks",
2020
platforms: [
21-
.macOS(.v13),
21+
.macOS(.v13)
2222
],
2323
dependencies: [
2424
.package(path: "../"),
@@ -29,12 +29,12 @@ 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: [
3636
.plugin(name: "BenchmarkPlugin", package: "package-benchmark")
3737
]
38-
),
38+
)
3939
]
4040
)

0 commit comments

Comments
 (0)