diff options
author | Simon Marlow <marlowsd@gmail.com> | 2016-08-30 17:07:36 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-08-31 13:15:33 -0400 |
commit | d790cb9db71693baed70e3de8e9100d5b7d7404b (patch) | |
tree | f76edc103b57e6dad45536ad082d30a5347d5ce9 /testsuite/tests/perf | |
parent | 3005fa5313b6d5fd9d4f47192c84e96e94ee7f17 (diff) | |
download | haskell-d790cb9db71693baed70e3de8e9100d5b7d7404b.tar.gz |
Bump the default allocation area size to 1MB
This is long overdue.
Perhaps 1MB is a little on the skinny size, but this is based on
* A lot of commodity dual-core desktop processors have 3MB L3 cache
* We're traditionally quite frugal with memory by default
Test Plan: validate
Reviewers: erikd, bgamari, hvr, austin, rwbarton, ezyang
Reviewed By: ezyang
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2496
Diffstat (limited to 'testsuite/tests/perf')
-rw-r--r-- | testsuite/tests/perf/should_run/all.T | 10 | ||||
-rw-r--r-- | testsuite/tests/perf/space_leaks/all.T | 3 |
2 files changed, 8 insertions, 5 deletions
diff --git a/testsuite/tests/perf/should_run/all.T b/testsuite/tests/perf/should_run/all.T index 282bb1a4fc..c20807e7b4 100644 --- a/testsuite/tests/perf/should_run/all.T +++ b/testsuite/tests/perf/should_run/all.T @@ -116,8 +116,9 @@ test('T3736', ['$MAKE -s --no-print-directory T3736']) test('T3738', [extra_clean(['T3738a.hi', 'T3738a.o']), - stats_num_field('peak_megabytes_allocated', (1, 0)), - # expected value: 1 (amd64/Linux) + stats_num_field('peak_megabytes_allocated', (2, 0)), + # expected value: 1 (amd64/Linux) + # 2016-08-31: 2 (allocation area size bumped to 1MB) stats_num_field('bytes allocated', [(wordsize(32), 45648, 5), # expected value: 50520 (x86/Linux) @@ -132,8 +133,9 @@ test('T3738', ['-O']) test('MethSharing', - [stats_num_field('peak_megabytes_allocated', (1, 0)), - # expected value: 1 (amd64/Linux) + [stats_num_field('peak_megabytes_allocated', (2, 0)), + # expected value: 1 (amd64/Linux) + # 2016-08-31: 2 (allocation area size bumped to 1MB) stats_num_field('bytes allocated', [(wordsize(32), 360940756, 5), # expected value: 2685858140 (x86/OS X) diff --git a/testsuite/tests/perf/space_leaks/all.T b/testsuite/tests/perf/space_leaks/all.T index 9d0661f817..c6b1d925a6 100644 --- a/testsuite/tests/perf/space_leaks/all.T +++ b/testsuite/tests/perf/space_leaks/all.T @@ -46,7 +46,8 @@ test('T4334', test('T2762', [# peak_megabytes_allocated is 2 with 7.0.2. # Was 57 with 6.12.3. - stats_num_field('peak_megabytes_allocated', (2, 0)), + # 2016-08-31: 3 (allocation area size bumped to 1MB) + stats_num_field('peak_megabytes_allocated', (3, 0)), only_ways(['normal']), extra_clean(['T2762A.hi', 'T2762A.o'])], compile_and_run, ['-O']) |