Skip to content

Commit 20bba23

Browse files
authored
Add GRPC and protobuf SPM plugins to QPSBenchmark (#1475)
Motivation We want to make use of both the protobuf and GRPC codegen SPM plugins in QPSBenchmark Modifications * Added support for both GRPC and protobuf plugin to QPSBenchmark Result QPSBenchmark now autogenerates both proto and GRPC code when building.
1 parent 964a877 commit 20bba23

18 files changed

+34
-6341
lines changed

Performance/QPSBenchmark/Makefile

Lines changed: 0 additions & 63 deletions
This file was deleted.

Performance/QPSBenchmark/Package.swift

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ let package = Package(
3535
),
3636
.package(
3737
url: "https://github.com/apple/swift-protobuf.git",
38-
from: "1.19.0"
38+
from: "1.20.1"
3939
),
4040
],
4141
targets: [
@@ -53,14 +53,9 @@ let package = Package(
5353
.product(name: "SwiftProtobuf", package: "swift-protobuf"),
5454
.target(name: "BenchmarkUtils"),
5555
],
56-
exclude: [
57-
"Model/benchmark_service.proto",
58-
"Model/control.proto",
59-
"Model/core_stats.proto",
60-
"Model/messages.proto",
61-
"Model/payloads.proto",
62-
"Model/stats.proto",
63-
"Model/worker_service.proto",
56+
plugins: [
57+
.plugin(name: "SwiftProtobufPlugin", package: "swift-protobuf"),
58+
.plugin(name: "GRPCSwiftPlugin", package: "grpc-swift"),
6459
]
6560
),
6661
.target(

Performance/QPSBenchmark/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ An implementation of the QPS worker for benchmarking described in the
55

66
## Building
77

8-
To rebuild the proto files run `make generate-qps-worker`.
9-
108
The benchmarks can be built in the usual Swift Package Manager way but release
119
mode is strongly recommended: `swift build -c release`
1210

0 commit comments

Comments
 (0)