clean up unnecessary new lines and logging.

pull/8313/head
Yuxuan Li 9 years ago
parent 403ca33aa6
commit c265a0ab02
  1. 4
      test/cpp/qps/driver.cc
  2. 6
      test/cpp/qps/qps_json_driver.cc
  3. 2
      test/cpp/util/benchmark_config.cc

@ -153,9 +153,7 @@ static void postprocess_scenario_result(ScenarioResult* result) {
100 -
100 * average(result->server_stats(), ServerIdleCpuTime) /
average(result->server_stats(), ServerTotalCpuTime);
gpr_log(GPR_INFO, "total cpu: %.1f, idle cpu: %.1f",
average(result->server_stats(), ServerTotalCpuTime),
average(result->server_stats(), ServerIdleCpuTime));
auto client_system_time = 100.0 * sum(result->client_stats(), SystemTime) /
sum(result->client_stats(), WallTime);
auto client_user_time = 100.0 * sum(result->client_stats(), UserTime) /

@ -46,19 +46,13 @@
DEFINE_string(scenarios_file, "",
"JSON file containing an array of Scenario objects");
DEFINE_string(scenarios_json, "",
"JSON string containing an array of Scenario objects");
DEFINE_bool(quit, false, "Quit the workers");
DEFINE_bool(search, false,
"Search for offered load setting that achieves targeted cpu load");
DEFINE_double(initial_offered_load, 1000.0, "Set up for intial offered load");
DEFINE_double(targeted_cpu_load, 99.0, "targeted cpu load");
DEFINE_double(precision, 500, "final search result precision");
namespace grpc {

@ -51,8 +51,6 @@ DEFINE_string(server_address, "localhost:50052",
DEFINE_string(tag, "", "Optional tag for the test");
// In some distros, gflags is in the namespace google, and in some others,
// in gflags. This hack is enabling us to find both.
namespace google {}

Loading…
Cancel
Save