Skip to content

Commit 3fd7d06

Browse files
committed
Add QPS Client to perform throughput and latency tests.
1 parent 127270b commit 3fd7d06

5 files changed

Lines changed: 563 additions & 0 deletions

File tree

benchmarks/build.gradle

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
apply plugin: 'application'
2+
apply plugin: 'protobuf'
3+
4+
description = "gRPC Benchmarks"
5+
6+
mainClassName = "io.grpc.benchmarks.qps.Client"
7+
8+
buildscript {
9+
repositories {
10+
mavenCentral()
11+
}
12+
dependencies {
13+
classpath libraries.protobuf_plugin
14+
}
15+
}
16+
17+
dependencies {
18+
compile project(':grpc-core'),
19+
project(':grpc-netty'),
20+
project(':grpc-okhttp'),
21+
project(':grpc-stub'),
22+
project(':grpc-testing'),
23+
libraries.junit,
24+
libraries.mockito,
25+
libraries.hdrhistogram
26+
}
27+
28+
protobufCodeGenPlugins = ["java_plugin:$rootDir/compiler/build/binaries/java_pluginExecutable/java_plugin"]
29+
compileJava.dependsOn = ['generateProto']
30+
31+
// Allow execution of test client and server.
32+
task execute(dependsOn: classes, type:JavaExec) {
33+
main = project.hasProperty('mainClass') ? project.mainClass : 'io.grpc.benchmarks.qps.Client'
34+
classpath = sourceSets.main.runtimeClasspath
35+
workingDir = project.rootDir
36+
37+
// If appArgs were provided, set the program arguments.
38+
if (project.hasProperty("appArgs")) {
39+
args = Eval.me(appArgs)
40+
}
41+
}

0 commit comments

Comments
 (0)