diff options
author | Craig Tiller <ctiller@google.com> | 2017-02-21 16:06:13 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-02-21 16:06:13 -0800 |
commit | 21dd43a1cdb927f54f97f9e310b30379a4f20d1f (patch) | |
tree | 571ea861352cc599c0d2d31f1c43d3bd08fb9079 /tools/run_tests/run_microbenchmark.py | |
parent | 3e16f4f1fa6b8725b10fac7baed770297ad9ab12 (diff) | |
parent | 8b01e8f5e65f7d8c2a11eaeed8c38bed05364830 (diff) |
Merge github.com:grpc/grpc into bm_call_create
Diffstat (limited to 'tools/run_tests/run_microbenchmark.py')
-rwxr-xr-x | tools/run_tests/run_microbenchmark.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/run_tests/run_microbenchmark.py b/tools/run_tests/run_microbenchmark.py index 62e767a021..a60178d2dd 100755 --- a/tools/run_tests/run_microbenchmark.py +++ b/tools/run_tests/run_microbenchmark.py @@ -93,7 +93,9 @@ def collect_latency(bm_name, args): '--benchmark_list_tests']).splitlines(): link(line, '%s.txt' % fnize(line)) benchmarks.append( - jobset.JobSpec(['bins/basicprof/%s' % bm_name, '--benchmark_filter=^%s$' % line], + jobset.JobSpec(['bins/basicprof/%s' % bm_name, + '--benchmark_filter=^%s$' % line, + '--benchmark_min_time=0.05'], environ={'LATENCY_TRACE': '%s.trace' % fnize(line)})) profile_analysis.append( jobset.JobSpec([sys.executable, @@ -105,7 +107,7 @@ def collect_latency(bm_name, args): # consume upwards of five gigabytes of ram in some cases, and so analysing # hundreds of them at once is impractical -- but we want at least some # concurrency or the work takes too long - if len(benchmarks) >= min(4, multiprocessing.cpu_count()): + if len(benchmarks) >= min(16, multiprocessing.cpu_count()): # run up to half the cpu count: each benchmark can use up to two cores # (one for the microbenchmark, one for the data flush) jobset.run(benchmarks, maxjobs=max(1, multiprocessing.cpu_count()/2), |