[commit: ghc] master: testsuite: fix failing amd64/Windows perf tests (a0c1c96)

git at git.haskell.org git at git.haskell.org
Fri Apr 3 19:55:51 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/a0c1c96515f4fbe1cf04b9760ed4f87e1544fcda/ghc

>---------------------------------------------------------------

commit a0c1c96515f4fbe1cf04b9760ed4f87e1544fcda
Author: Austin Seipp <austin at well-typed.com>
Date:   Fri Apr 3 05:59:57 2015 -0500

    testsuite: fix failing amd64/Windows perf tests
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>


>---------------------------------------------------------------

a0c1c96515f4fbe1cf04b9760ed4f87e1544fcda
 testsuite/tests/callarity/perf/all.T  |  3 ++-
 testsuite/tests/perf/should_run/all.T | 19 +++++++++++++------
 2 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/testsuite/tests/callarity/perf/all.T b/testsuite/tests/callarity/perf/all.T
index 1c79694..83083d4 100644
--- a/testsuite/tests/callarity/perf/all.T
+++ b/testsuite/tests/callarity/perf/all.T
@@ -1,9 +1,10 @@
 test('T3924',
      [stats_num_field('bytes allocated', 
-          [ (wordsize(64), 50760, 5),
+          [ (wordsize(64), 50760, 8),
               # previously, without call-arity: 22326544
               # 2014-01-18: 51480  (amd64/Linux)
               # 2014-07-17: 50760  (amd64/Linux) (Roundabout adjustment)
+              # 2015-04-03: Widen 5->8% (amd64/Windows was doing better)
             (wordsize(32), 44988, 5) ]),
               # 2014-04-04: 44988  (Windows, 64-bit machine)
       only_ways(['normal'])
diff --git a/testsuite/tests/perf/should_run/all.T b/testsuite/tests/perf/should_run/all.T
index 3731218..f680104 100644
--- a/testsuite/tests/perf/should_run/all.T
+++ b/testsuite/tests/perf/should_run/all.T
@@ -16,10 +16,11 @@ test('T3586',
 
 test('T4830',
      [stats_num_field('bytes allocated',
-          [(wordsize(64), 98248, 1),
+          [(wordsize(64), 98248, 4),
            #             127000 (amd64/Linux)
            # 2013-02-07:  99264 (amd64/Linux)
            # 2014-01-13:  98248 (amd64/Linux) due to #8647
+           # 2015-04-03: Widen 1->4% (amd64/Windows was doing better)
            (wordsize(32), 70646, 3)]),
            # 2013-02-10:  69744 (x86/Windows)
            # 2013-02-10:  71548 (x86/OSX)
@@ -39,10 +40,11 @@ test('lazy-bs-alloc',
      [stats_num_field('peak_megabytes_allocated', (2, 1)),
                                  # expected value: 2 (amd64/Linux)
       stats_num_field('bytes allocated',
-          [(wordsize(64), 425400, 1),
+          [(wordsize(64), 425400, 3),
             #             489776 (amd64/Linux)
             # 2013-02-07: 429744 (amd64/Linux)
             # 2013-12-12: 425400 (amd64/Linux)
+            # 2015-04-04: Widen 1->3% (amd64/Windows was failing)
            (wordsize(32), 411500, 2)]),
             # 2013-02-10: 421296 (x86/Windows)
             # 2013-02-10: 414180 (x86/OSX)
@@ -58,7 +60,9 @@ test('lazy-bs-alloc',
 
 test('T876',
      [stats_num_field('bytes allocated',
-          [(wordsize(64), 63216 , 5),
+          [(platform('x86_64-unknown-mingw32'), 71904, 5),
+              # 2015-04-03: 71904 (amd64/Windows, unknown cause)
+           (wordsize(64), 63216 , 5),
               # 2013-02-14: 1263712 (x86_64/Linux)
               # 2014-02-10:   63216 (x86_64/Linux), call arity analysis
 
@@ -95,10 +99,11 @@ test('T3738',
       stats_num_field('bytes allocated',
                       [(wordsize(32), 45648, 5),
                     # expected value: 50520 (x86/Linux)
-                       (wordsize(64), 50592, 5)]),
+                       (wordsize(64), 50592, 8)]),
                     # prev:           49400 (amd64/Linux)
                     # 2014-07-17:     50520 (amd64/Linux) general round of updates
                     # 2014-09-10:     50592 (amd64/Linux) post-AMP-update
+                    # 2015-04-03: Widen 5->8% (amd64/Windows was doing better)
       only_ways(['normal'])
       ],
      compile_and_run,
@@ -160,9 +165,10 @@ test('T5205',
      [stats_num_field('bytes allocated',
                       [(wordsize(32), 47088, 5),
                     # expected value: 47088 (x86/Darwin)
-                       (wordsize(64), 52600, 5)]),
+                       (wordsize(64), 52600, 7)]),
                     # expected value: 51320 (amd64/Linux)
                     # 2014-07-17:     52600 (amd64/Linux) general round of updates
+                    # 2015-04-03: Widen 5->7% (amd64/Windows was doing better)
       only_ways(['normal', 'optasm'])
       ],
      compile_and_run,
@@ -276,9 +282,10 @@ test('T7507', omit_ways(['ghci']), compile_and_run, ['-O'])
 
 test('T7436',
      [stats_num_field('max_bytes_used',
-          [(wordsize(64), 60360, 1),
+          [(wordsize(64), 60360, 4),
            #             127000 (amd64/Linux)
            # 2013-02-07:  60360 (amd64/Linux)
+           # 2015-04-03: Widen 1->4% (amd64/Windows was doing better)
            (wordsize(32), 58434, 1)]),
             # 2013-02-10: 58032 (x86/Windows)
             # 2013-02-10: 58836 (x86/OSX)



More information about the ghc-commits mailing list