diff --git a/test/cpp/qps/report.cc b/test/cpp/qps/report.cc index 05fb111120637c00d7f9645b644dc152a4b859bc..9cef7bf52f8b9a69690b6331b3e3188d84cf027e 100644 --- a/test/cpp/qps/report.cc +++ b/test/cpp/qps/report.cc @@ -85,7 +85,7 @@ void GprLogReporter::ReportQPS(const ScenarioResult& result) { Histogram histogram; histogram.MergeProto(result.latencies()); gpr_log(GPR_INFO, "QPS: %.1f", - histogram.Count() / average(result.client_stats(), WallTime)); + histogram.Count() / average(result.client_stats(), WallTime)); } void GprLogReporter::ReportQPSPerCore(const ScenarioResult& result) { @@ -102,10 +102,8 @@ void GprLogReporter::ReportLatency(const ScenarioResult& result) { histogram.MergeProto(result.latencies()); gpr_log(GPR_INFO, "Latencies (50/90/95/99/99.9%%-ile): %.1f/%.1f/%.1f/%.1f/%.1f us", - histogram.Percentile(50) / 1000, - histogram.Percentile(90) / 1000, - histogram.Percentile(95) / 1000, - histogram.Percentile(99) / 1000, + histogram.Percentile(50) / 1000, histogram.Percentile(90) / 1000, + histogram.Percentile(95) / 1000, histogram.Percentile(99) / 1000, histogram.Percentile(99.9) / 1000); } @@ -133,8 +131,8 @@ void JsonReporter::ReportQPS(const ScenarioResult& result) { grpc::string json_string; result.SerializeToString(&binary); auto status = BinaryToJsonString(type_resolver.get(), - "type.googleapis.com/grpc.testing.ScenarioResult", - binary, &json_string); + "type.googleapis.com/grpc.testing.ScenarioResult", + binary, &json_string); GPR_ASSERT(status.ok()); std::ofstream output_file(report_file_); diff --git a/test/cpp/qps/report.h b/test/cpp/qps/report.h index e32a129e76a2a3e1f9df9c0d96edd8be0fecca37..8f04d84124588f534d76e9402acc0624a85f52d2 100644 --- a/test/cpp/qps/report.h +++ b/test/cpp/qps/report.h @@ -107,9 +107,8 @@ class GprLogReporter : public Reporter { /** Dumps the report to a JSON file. */ class JsonReporter : public Reporter { public: - JsonReporter(const string& name, const string& report_file) : - Reporter(name), - report_file_(report_file) {} + JsonReporter(const string& name, const string& report_file) + : Reporter(name), report_file_(report_file) {} private: void ReportQPS(const ScenarioResult& result) GRPC_OVERRIDE;