Skip to content
Snippets Groups Projects
Commit fb0a9181 authored by Craig Tiller's avatar Craig Tiller
Browse files

Cap fling tests by time not rpcs processed

parent 9e1e99aa
No related branches found
No related tags found
No related merge requests found
......@@ -201,13 +201,16 @@ int main(int argc, char **argv) {
sc.init();
for (i = 0; i < 1000; i++) {
gpr_timespec end_warmup = GRPC_TIMEOUT_SECONDS_TO_DEADLINE(3);
gpr_timespec end_profiling = GRPC_TIMEOUT_SECONDS_TO_DEADLINE(30);
while (gpr_time_cmp(gpr_now(end_warmup.clock_type), end_warmup) < 0) {
sc.do_one_step();
}
gpr_log(GPR_INFO, "start profiling");
grpc_profiler_start("client.prof");
for (i = 0; i < 100000; i++) {
while (gpr_time_cmp(gpr_now(end_profiling.clock_type), end_profiling) < 0) {
start = now();
sc.do_one_step();
stop = now();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment