File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Benchmarks/PrometheusBenchmarks Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ let benchmarks = {
37
37
metrics: ProcessInfo . processInfo. environment [ " CI " ] != nil ? ciMetrics : localMetrics,
38
38
warmupIterations: 10 ,
39
39
scalingFactor: . kilo,
40
- maxDuration: . seconds( 5 ) ,
40
+ maxDuration: . seconds( 5 )
41
41
)
42
42
43
43
Benchmark ( " Counter - setup and increment " ) { benchmark in
@@ -62,8 +62,8 @@ let benchmarks = {
62
62
63
63
Benchmark (
64
64
" RegistryEmit - 5000 metrics " ,
65
- configuration: . init( scalingFactor: . one) )
66
- { benchmark, run in
65
+ configuration: . init( scalingFactor: . one)
66
+ ) { benchmark, run in
67
67
for _ in benchmark. scaledIterations {
68
68
run ( )
69
69
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public func setupRegistryExport(numberOfMetrics: Int) -> () -> Void {
27
27
gaugeArray. reserveCapacity ( numberOfMetrics)
28
28
buffer. reserveCapacity ( counterExportSize)
29
29
30
- for i in 0 ..< ( numberOfMetrics / 2 ) {
30
+ for i in 0 ..< ( numberOfMetrics / 2 ) {
31
31
let counter = registryExport. makeCounter ( name: " http_requests_total " , labels: makeLabels ( i) )
32
32
counter. increment ( )
33
33
counterArray. append ( counter)
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import PackageDescription
18
18
let package = Package (
19
19
name: " benchmarks " ,
20
20
platforms: [
21
- . macOS( . v13) ,
21
+ . macOS( . v13)
22
22
] ,
23
23
dependencies: [
24
24
. package ( path: " ../ " ) ,
@@ -29,12 +29,12 @@ let package = Package(
29
29
name: " PrometheusBenchmarks " ,
30
30
dependencies: [
31
31
. product( name: " Benchmark " , package : " package-benchmark " ) ,
32
- . product( name: " Prometheus " , package : " swift-prometheus " )
32
+ . product( name: " Prometheus " , package : " swift-prometheus " ) ,
33
33
] ,
34
34
path: " Benchmarks/PrometheusBenchmarks " ,
35
35
plugins: [
36
36
. plugin( name: " BenchmarkPlugin " , package : " package-benchmark " )
37
37
]
38
- ) ,
38
+ )
39
39
]
40
40
)
You can’t perform that action at this time.
0 commit comments