mirror of https://github.com/grpc/grpc-java.git
Merge pull request #881 from nmittler/fix_benchmarks
Fixing the benchmarks
This commit is contained in:
commit
40c66a17a9
|
|
@ -24,7 +24,7 @@ jmh {
|
|||
warmupIterations = 10
|
||||
iterations = 10
|
||||
fork = 1
|
||||
jvmArgs = "-server -Xms768m -Xmx768m -dsa -da -XX:+AggressiveOpts -XX:+UseBiasedLocking -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat"
|
||||
jvmArgs = "-server -Xms2g -Xmx2g -dsa -da -XX:+AggressiveOpts -XX:+UseBiasedLocking -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
|||
|
|
@ -419,8 +419,6 @@ public abstract class AbstractBenchmark {
|
|||
counter.addAndGet(counterDelta);
|
||||
requestObserverRef.get().onValue(request.slice());
|
||||
streamingCall.request(1);
|
||||
} else {
|
||||
requestObserverRef.get().onCompleted();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -463,8 +461,6 @@ public abstract class AbstractBenchmark {
|
|||
if (!done.get()) {
|
||||
counter.addAndGet(counterDelta);
|
||||
streamingCall.request(1);
|
||||
} else {
|
||||
requestObserverRef.get().onCompleted();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public interface StreamObserver<V> {
|
|||
*
|
||||
* @param value the value passed to the stream
|
||||
*/
|
||||
public void onValue(V value);
|
||||
void onValue(V value);
|
||||
|
||||
/**
|
||||
* Receives a terminating error from the stream.
|
||||
|
|
@ -66,7 +66,7 @@ public interface StreamObserver<V> {
|
|||
*
|
||||
* @param t the error occurred on the stream
|
||||
*/
|
||||
public void onError(Throwable t);
|
||||
void onError(Throwable t);
|
||||
|
||||
/**
|
||||
* Receives a notification of successful stream completion.
|
||||
|
|
@ -75,5 +75,5 @@ public interface StreamObserver<V> {
|
|||
* exception is thrown by an implementation of {@code onCompleted} no further calls to any method
|
||||
* are allowed.
|
||||
*/
|
||||
public void onCompleted();
|
||||
void onCompleted();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue