#1607: seq can make code slower
--------------------------------------+-------------------------------------
Reporter: simonpj | Owner: igloo
Type: bug | Status: closed
Priority: low | Milestone: 7.2.1
Component: Compiler | Version: 6.6.1
Resolution: fixed | Keywords:
Testcase: | Blockedby:
Difficulty: Unknown | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: Runtime performance bug |
--------------------------------------+-------------------------------------
Changes (by igloo):
* status: new => closed
* resolution: => fixed
Comment:
Stats from 10 runs:
{{{
Lazy tests
writeTime
c(2132, 2129, 2124, 2122, 2162, 2140, 2139, 2127, 2151, 2132)
mean = 2135.8 sd = 12.59453
pushTime
c(2252, 2132, 2247, 2107, 2101, 2107, 2116, 2062, 2180, 2122)
mean = 2142.6 sd = 63.48438
Strict tests
writeTime
c(2152, 2120, 2175, 2169, 2151, 2006, 2007, 2168, 2168, 2143)
mean = 2125.9 sd = 64.94861
pushTime
c(2157, 2125, 2197, 2092, 2148, 2076, 2164, 2163, 2128, 2144)
mean = 2139.4 sd = 35.72798
}}}
Looks like the strict code is now actually slightly faster.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1607#comment:12>
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