diff options
| author | Alex Light <allight@google.com> | 2019-05-31 10:26:01 -0700 |
|---|---|---|
| committer | Alex Light <allight@google.com> | 2019-05-31 10:44:08 -0700 |
| commit | f98a38740bfdc361e55956ace6a3b937a83faeb3 (patch) | |
| tree | 8622e0d37cd0b7e692d1bdc24bf860584428615b /test/ProfileTestMultiDex | |
| parent | 3068d582eff4552ff260d7966fcbdc93e17d0207 (diff) | |
Make test 1946 faster
On overloaded machines test 1946 will sometimes time-out. To make this
test faster we will turn one of the lists into a HashMap and using
lambdas to delay expensive Arrays.toString calls. This leads to the
test being around 70% faster.
Pre-change:
% time ./test/run-test --host --dev --64 1946
<snip>
./test/run-test --host --dev --64 1946 36.28s user 25.57s system 277% cpu 22.286 total
Post-change:
% time ./test/run-test --host --dev --64 1946
<snip>
./test/run-test --host --dev --64 1946 19.06s user 26.78s system 724% cpu 6.329 total
Test: ./test.py --host
Bug: 74583462
Change-Id: Id9b761ae95f87c96c0eb2fcdf5355a804d396267
Diffstat (limited to 'test/ProfileTestMultiDex')
0 files changed, 0 insertions, 0 deletions
