Lines Matching refs:scenario

78 static std::unique_ptr<ScenarioResult> RunAndReport(const Scenario& scenario,  in RunAndReport()  argument
80 std::cerr << "RUNNING SCENARIO: " << scenario.name() << "\n"; in RunAndReport()
82 scenario.client_config(), scenario.num_clients(), in RunAndReport()
83 scenario.server_config(), scenario.num_servers(), in RunAndReport()
84 scenario.warmup_seconds(), scenario.benchmark_seconds(), in RunAndReport()
85 !FLAGS_run_inproc ? scenario.spawn_local_worker_count() : -2, in RunAndReport()
91 result->mutable_scenario()->CopyFrom(scenario); in RunAndReport()
118 static double GetCpuLoad(Scenario* scenario, double offered_load, in GetCpuLoad() argument
120 scenario->mutable_client_config() in GetCpuLoad()
124 auto result = RunAndReport(*scenario, success); in GetCpuLoad()
128 static double BinarySearch(Scenario* scenario, double targeted_cpu_load, in BinarySearch() argument
132 double current_cpu_load = GetCpuLoad(scenario, mid, success); in BinarySearch()
149 double targeted_cpu_load, Scenario* scenario, in SearchOfferedLoad() argument
151 std::cerr << "RUNNING SCENARIO: " << scenario->name() << "\n"; in SearchOfferedLoad()
153 double current_cpu_load = GetCpuLoad(scenario, current_offered_load, success); in SearchOfferedLoad()
161 current_cpu_load = GetCpuLoad(scenario, current_offered_load, success); in SearchOfferedLoad()
167 BinarySearch(scenario, targeted_cpu_load, current_offered_load / 2, in SearchOfferedLoad()
214 const Scenario& scenario = scenarios.scenarios(i); in QpsDriver() local
215 RunAndReport(scenario, &success); in QpsDriver()
218 Scenario* scenario = scenarios.mutable_scenarios(i); in QpsDriver() local
221 FLAGS_targeted_cpu_load, scenario, &success); in QpsDriver()
223 GetCpuLoad(scenario, targeted_offered_load, &success); in QpsDriver()