#3331: control-monad-queue performance regression
-----------------------------------------+----------------------------------
    Reporter:  lpsmith                   |        Owner:                  
        Type:  run-time performance bug  |       Status:  new             
    Priority:  normal                    |    Milestone:                  
   Component:  Compiler                  |      Version:  6.10.3          
    Severity:  normal                    |   Resolution:                  
    Keywords:                            |   Difficulty:  Unknown         
    Testcase:                            |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple          |  
-----------------------------------------+----------------------------------
Changes (by igloo):

  * difficulty:  => Unknown

Comment:

 Here are some numbers when compiling with `-O` and `-O2`, and with 6.8.2
 and 6.10.3.

 In particular, note the bytes allocated in the heap (the first number
 after `<<ghc:`, which is roughly half for 6.8.2 `-O2`.

 {{{
 $ ghc-6.8.2 --make Time -O2 -Wall
 $ time ./Time allison 34 20 +RTS -tstderr
 ./Time allison 34 20 +RTS -tstderr
 allison
 Timings: [74,70,69,69,69,70,69,69,69,69,69,68,69,68,69,69,68,70,68,69]
 Sum:     1384
 Minimum: 68
 Maximum: 74
 Mean:    69.2
 Stddev:  1.2489995996796797
 <<ghc: 7698344320 bytes, 14933 GCs, 10787493/25911296 avg/max bytes
 residency (248 samples), 74M in use, 0.00 INIT (0.00 elapsed), 3.36 MUT
 (3.47 elapsed), 10.50 GC (10.46 elapsed) :ghc>>
 ./Time allison 34 20 +RTS -tstderr  13.86s user 0.07s system 99% cpu
 13.939 total
 }}}

 {{{
 $ ghc-6.8.2 --make Time -O -Wall
 $ time ./Time allison 34 20 +RTS -tstderr
 ./Time allison 34 20 +RTS -tstderr
 allison
 Timings: [88,82,82,82,82,82,82,82,83,82,82,81,83,82,83,82,82,82,82,83]
 Sum:     1649
 Minimum: 81
 Maximum: 88
 Mean:    82.45
 Stddev:  1.3592277219068187
 <<ghc: 15028226896 bytes, 28919 GCs, 10697618/26333184 avg/max bytes
 residency (253 samples), 74M in use, 0.00 INIT (0.00 elapsed), 4.91 MUT
 (4.92 elapsed), 11.57 GC (11.64 elapsed) :ghc>>
 ./Time allison 34 20 +RTS -tstderr  16.48s user 0.09s system 100% cpu
 16.568 total
 }}}

 {{{
 $ ghc-6.10.3 --make Time -O2 -Wall
 $ time ./Time allison 34 20 +RTS -t
 ./Time allison 34 20 +RTS -t
 allison
 Timings: [92,86,86,86,86,86,87,86,86,86,85,85,85,85,85,85,85,86,85,85]
 Sum:     1718
 Minimum: 85
 Maximum: 92
 Mean:    85.9
 Stddev:  1.5132745950421556
 <<ghc: 15229851816 bytes, 29050 GCs, 10585871/25713256 avg/max bytes
 residency (254 samples), 76M in use, 0.00 INIT (0.00 elapsed), 5.64 MUT
 (6.26 elapsed), 11.56 GC (11.00 elapsed) :ghc>>
 ./Time allison 34 20 +RTS -t  17.20s user 0.07s system 100% cpu 17.261
 total
 }}}

 {{{
 $ ghc-6.10.3 --make Time -O -Wall
 $ time ./Time allison 34 20 +RTS -t
 ./Time allison 34 20 +RTS -t
 allison
 Timings: [102,96,95,96,94,95,96,95,98,96,96,96,95,94,95,96,95,96,94,96]
 Sum:     1916
 Minimum: 94
 Maximum: 102
 Mean:    95.8
 Stddev:  1.6911534525287764
 <<ghc: 18790076976 bytes, 35841 GCs, 11806004/25067440 avg/max bytes
 residency (229 samples), 74M in use, 0.00 INIT (0.00 elapsed), 7.46 MUT
 (7.43 elapsed), 11.67 GC (11.81 elapsed) :ghc>>
 ./Time allison 34 20 +RTS -t  19.13s user 0.12s system 100% cpu 19.252
 total
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3331#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to