Searched refs:targetQps (Results 1 – 2 of 2) sorted by relevance
/external/grpc-grpc-java/benchmarks/src/main/java/io/grpc/benchmarks/qps/ |
D | OpenLoopClient.java | 93 new LoadGenerationWorker(ch, req, config.targetQps, config.duration); in run() 123 .append("Target QPS: ").append(config.targetQps).append('\n'); in printStats() 132 final int targetQps; field in OpenLoopClient.LoadGenerationWorker 135 LoadGenerationWorker(Channel channel, SimpleRequest request, int targetQps, int duration) { in LoadGenerationWorker() argument 138 this.targetQps = targetQps; in LoadGenerationWorker() 139 numRpcs = (long) targetQps * duration; in LoadGenerationWorker() 168 nextRpc += nextDelay(targetQps); in call() 213 private long nextDelay(int targetQps) { in nextDelay() argument 214 double seconds = -Math.log(Math.max(rnd.nextDouble(), DELAY_EPSILON)) / targetQps; in nextDelay()
|
D | ClientConfiguration.java | 60 int targetQps; field in ClientConfiguration 224 TARGET_QPS("INT", "Average number of QPS to shoot for.", "" + DEFAULT.targetQps, true) { 227 config.targetQps = parseInt(value); in setClientValue()
|