diff options
author | Craig Tiller <ctiller@google.com> | 2016-09-29 11:01:14 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-09-29 11:01:14 -0700 |
commit | 0895545a587e8e1f986eb813580277d88a7de55f (patch) | |
tree | d6e1ead7f90d80b3bca7e20ef55ca327c7fd2e8d /test/cpp/qps/driver.cc | |
parent | 9c7f4f7028130058ef9dc690f56554f91832ba41 (diff) |
Complete reporting for failure rates
Diffstat (limited to 'test/cpp/qps/driver.cc')
-rw-r--r-- | test/cpp/qps/driver.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/cpp/qps/driver.cc b/test/cpp/qps/driver.cc index 29e53f383d..0168a525ce 100644 --- a/test/cpp/qps/driver.cc +++ b/test/cpp/qps/driver.cc @@ -132,7 +132,8 @@ static void postprocess_scenario_result(ScenarioResult* result) { Histogram histogram; histogram.MergeProto(result->latencies()); - auto qps = histogram.Count() / average(result->client_stats(), WallTime); + auto time_estimate = average(result->client_stats(), WallTime); + auto qps = histogram.Count() / time_estimate; auto qps_per_server_core = qps / sum(result->server_cores(), Cores); result->mutable_summary()->set_qps(qps); @@ -169,8 +170,8 @@ static void postprocess_scenario_result(ScenarioResult* result) { failures += rrc.count(); } } - result->mutable_summary()->set_successful_requests(successes); - result->mutable_summary()->set_failed_requests(successes); + result->mutable_summary()->set_successful_requests_per_second(successes / time_estimate); + result->mutable_summary()->set_failed_requests_per_second(failures / time_estimate); } } |