diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-02-26 00:30:18 +0100 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-04-30 17:48:30 +0200 |
commit | 5eeb36603d197ed73a031cea70843e9b43d312b9 (patch) | |
tree | fbb54050c073c94ce448e23418381a6d3a6ddf6f /t/testsuite-summary-count-many.sh | |
parent | f5733aabe7c186a04f288214cb840a423d5b821b (diff) | |
download | automake-5eeb36603d197ed73a031cea70843e9b43d312b9.tar.gz |
parallel-tests: optimize global log creation
With this change, the time required to execute the test case
'testsuite-summary-speed.sh' has dropped as follows:
+ Slow Debian i686 system, 1 core x 1.5 GHz, 768 MB of RAM,
GNU make 3.81:
- 1 run: 4 minutes => 30/40 seconds
+ Fast Solaris 10 i686 system, 4 cores x 3 GHz, 20 GB of RAM,
Solaris CCS make:
- 2 runs: 6 minutes => 30 seconds
+ Very fast Fedora ppc64 system, 64 cores x 3.5 GHz, 64 GB of RAM,
GNU make 3.82:
- 5 runs: 7 minutes => 1 minute and 10 seconds
* lib/am/check.am ($(TEST_SUITE_LOG)): Optimize for speed, by avoiding
lots of forks with the help of ...
(am__create_global_log): ... this new internal variable, basically
defining a smart awk program, and ...
(am__global_test_result_rx, am__copy_in_global_log_rx): ... these new
internal variables, used by the one above.
(am__rst_section): Remove as obsolete
* t/rst-formatting.trs: Remove.
* t/list-of-tests.mk: Update.
* t/testsuite-summary-count-many.sh: Improve its stress testing by
using 1 million tests rather than just 5 thousands: we can afford
this with our new optimization, and still have the test completed
in a reasonable time.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/testsuite-summary-count-many.sh')
-rwxr-xr-x | t/testsuite-summary-count-many.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/t/testsuite-summary-count-many.sh b/t/testsuite-summary-count-many.sh index 58157ad9b..ff38097e4 100755 --- a/t/testsuite-summary-count-many.sh +++ b/t/testsuite-summary-count-many.sh @@ -56,9 +56,7 @@ $PERL -w -e ' use warnings FATAL => "all"; use strict; - # FIXME: we would like this to be 1000 or even 10000, but the current - # implementation is too slow to handle that :-( - my $base = 5; + my $base = 1000; my %count = ( TOTAL => $base * 1000, PASS => $base * 700, |