-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port benchmark service from grpc-java
- Loading branch information
1 parent
c82d602
commit 9e98e6a
Showing
20 changed files
with
41,297 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Benchmark Service Impl based on [grpc benchmark tools](https://github.com/grpc/grpc-java/tree/master/benchmarks) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
apply plugin: 'com.google.protobuf' | ||
apply plugin: 'idea' | ||
apply plugin: 'kotlin' | ||
|
||
compileKotlin { | ||
kotlinOptions{ | ||
jvmTarget = "1.8" | ||
freeCompilerArgs += ["-Xuse-experimental=kotlin.Experimental"] | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation project(':kroto-plus-coroutines') | ||
|
||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" | ||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.coroutines}" | ||
|
||
implementation "com.google.protobuf:protobuf-java:${versions.protobuf}" | ||
implementation "io.grpc:grpc-protobuf:${versions.grpc}" | ||
implementation "io.grpc:grpc-stub:${versions.grpc}" | ||
implementation "io.grpc:grpc-netty:${versions.grpc}" | ||
|
||
implementation "io.grpc:grpc-benchmarks:${versions.grpc}" | ||
protobuf "io.grpc:grpc-benchmarks:${versions.grpc}" | ||
} | ||
|
||
compileJava.enabled = false | ||
|
||
protobuf { | ||
protoc { artifact = "com.google.protobuf:protoc:${versions.protobuf}"} | ||
|
||
//noinspection GroovyAssignabilityCheck | ||
plugins { | ||
kroto { | ||
path = "${rootProject.projectDir}/protoc-gen-kroto-plus/build/libs/protoc-gen-kroto-plus-${project.version}-jvm8.jar" | ||
} | ||
} | ||
|
||
generateProtoTasks { | ||
def krotoConfig = file("krotoPlusConfig.asciipb") | ||
|
||
all().each{ task -> | ||
task.inputs.files krotoConfig | ||
|
||
task.builtins { | ||
remove java | ||
} | ||
task.plugins { | ||
kroto { | ||
option "ConfigPath=$krotoConfig" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
grpc_coroutines { | ||
filter { exclude_path: "google/*" } | ||
} |
579 changes: 579 additions & 0 deletions
579
...oroutines/benchmark/src/main/generated/io/grpc/benchmarks/proto/BenchmarkServiceGrpc.java
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.