Skip to content

Commit

Permalink
port benchmark service from grpc-java
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoferrer committed Dec 19, 2018
1 parent c82d602 commit 9e98e6a
Show file tree
Hide file tree
Showing 20 changed files with 41,297 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ plugins{
id "com.jfrog.artifactory" version "4.8.1" apply false
id "org.springframework.boot" version "2.0.3.RELEASE" apply false
id 'com.gradle.plugin-publish' version '0.9.7' apply false
id "com.google.osdetector" version "1.4.0"
}

subprojects{ subproject ->
Expand Down
1 change: 1 addition & 0 deletions kroto-plus-coroutines/benchmark/README.md
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)
55 changes: 55 additions & 0 deletions kroto-plus-coroutines/benchmark/build.gradle
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"
}
}
}
}
}
3 changes: 3 additions & 0 deletions kroto-plus-coroutines/benchmark/krotoPlusConfig.asciipb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
grpc_coroutines {
filter { exclude_path: "google/*" }
}

Large diffs are not rendered by default.

Loading

0 comments on commit 9e98e6a

Please sign in to comment.