diff options
author | 2016-04-14 12:59:42 -0700 | |
---|---|---|
committer | 2016-04-14 13:13:25 -0700 | |
commit | 969ffaf5c61aeec0c52a721d64b39528da233fd3 (patch) | |
tree | 43b99c43617edd23c2933a7f755e0b79f7bf00a7 /test/cpp/qps/qps_json_driver.cc | |
parent | f2ba7fe037b4e97d727ba38603364c464144e2e9 (diff) |
Enable JSON reports for qps drivers
Diffstat (limited to 'test/cpp/qps/qps_json_driver.cc')
-rw-r--r-- | test/cpp/qps/qps_json_driver.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/cpp/qps/qps_json_driver.cc b/test/cpp/qps/qps_json_driver.cc index 8943a43ba8..e9266a5711 100644 --- a/test/cpp/qps/qps_json_driver.cc +++ b/test/cpp/qps/qps_json_driver.cc @@ -102,12 +102,16 @@ static void QpsDriver() { for (int i = 0; i < scenarios.scenarios_size(); i++) { const Scenario &scenario = scenarios.scenarios(i); std::cerr << "RUNNING SCENARIO: " << scenario.name() << "\n"; - const auto result = + auto result = RunScenario(scenario.client_config(), scenario.num_clients(), scenario.server_config(), scenario.num_servers(), scenario.warmup_seconds(), scenario.benchmark_seconds(), scenario.spawn_local_worker_count()); + // Amend the result with scenario config. Eventually we should adjust + // RunScenario contract so we don't need to touch the result here. + result->mutable_scenario()->CopyFrom(scenario); + GetReporter()->ReportQPS(*result); GetReporter()->ReportQPSPerCore(*result); GetReporter()->ReportLatency(*result); |