diff options
author | Vijay Pai <vpai@google.com> | 2017-11-09 09:46:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-09 09:46:42 -0800 |
commit | 2da79b8febc7e63994ee19ba4b0f43312050ea78 (patch) | |
tree | 35fe2d09f0d0d84b4e05c7fb9a2883860a45937d | |
parent | 4d4fab1e60c18e89635ce099b50defede5e3f026 (diff) | |
parent | c42e97800468659f2f9a88425df26e8eb8ad8aba (diff) |
Merge pull request #13326 from vjpai/cpu_test
Reduce # of arithmetic ops to reduce time spent in gpr_cpu_test
-rw-r--r-- | test/core/support/cpu_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/support/cpu_test.cc b/test/core/support/cpu_test.cc index a76531ead9..c69ce55a73 100644 --- a/test/core/support/cpu_test.cc +++ b/test/core/support/cpu_test.cc @@ -68,7 +68,7 @@ static void worker_thread(void* arg) { unsigned i, j; /* Avoid repetitive division calculations */ int64_t max_i = 1000 / grpc_test_slowdown_factor(); - int64_t max_j = 1000000 / grpc_test_slowdown_factor(); + int64_t max_j = 1000 / grpc_test_slowdown_factor(); for (i = 0; i < max_i; i++) { /* run for a bit - just calculate something random. */ for (j = 0; j < max_j; j++) { |