
#14414: Profiled program runs 2.5x faster than non-profiled -------------------------------------+------------------------------------- Reporter: Fuuzetsu | Owner: (none) Type: bug | Status: infoneeded Priority: normal | Milestone: Component: Compiler | Version: 8.2.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by osa1): I also can't reproduce this with GHC 8.4.2 on Linux. When I increase the input by 10x (otherwise it runs too fast on my system) and call `time` I get these numbers: - Profiled: 12.18s, `-s` reports: 12.17s - Non-profiled: 2.00s, `-s` reports: 1.9s Non-threaded runtime: - Profiled: 3.73s, `-s` reports: 3.72s - Non-profiled: 1.29s, `-s` reports: 1.28s -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14414#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler