You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both GHC and programs compiled with it are slow when version 8.0.x is used.
Expected run time to be roughly the same between 7.6.3, 7.10.3, 8.0.1, and 8.0.2 versions
Windows version is 1607 build 15031.0
Actual results
Newer GHC:
$ time stack ghc -- -e 'putStrLn ""'
real 2m28.240s
user 0m0.375s
sys 3m30.078s
$ time stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2
real 1m45.533s
user 0m0.125s
sys 2m46.516s
$ time stack ghc --compiler ghc-8.0.1 -- --version
The Glorious Glasgow Haskell Compilation System, version 8.0.1
real 2m54.764s
user 0m0.234s
sys 3m58.422s
$ echo 'main = putStrLn "Hello, world!"' > test.hs
$ time stack ghc --compiler ghc-8.0.2 -- test
[1 of 1] Compiling Main ( test.hs, test.o )
Linking test ...
real 3m56.582s
user 0m0.609s
sys 5m8.125s
$ time ./test
Hello, world!
real 0m27.540s
user 0m0.000s
sys 0m27.297s
Older GHC:
$ time ghc -e 'putStrLn ""'
real 0m0.872s
user 0m0.109s
sys 0m0.125s
$ time ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
real 0m0.072s
user 0m0.000s
sys 0m0.031s
$ time stack ghc --compiler ghc-7.10.3 -- -e 'putStrLn ""'
real 0m0.876s
user 0m0.234s
sys 0m0.688s
$ time stack ghc --compiler ghc-7.10.3 -- --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3
real 0m0.832s
user 0m0.109s
sys 0m0.813s
$ echo 'main = putStrLn "Hello, world!"' > test.hs
$ time stack ghc --compiler ghc-7.10.3 -- test
[1 of 1] Compiling Main ( test.hs, test.o )
Linking test ...
real 0m2.222s
user 0m0.406s
sys 0m1.406s
$ time ./test
Hello, world!
real 0m0.030s
user 0m0.000s
sys 0m0.031s
Description
Both GHC and programs compiled with it are slow when version 8.0.x is used.
Expected run time to be roughly the same between 7.6.3, 7.10.3, 8.0.1, and 8.0.2 versions
Windows version is 1607 build 15031.0
Actual results
Newer GHC:
Older GHC:
Steps to reproduce
bash
sudo apt-get install stack
stack setup 7.10.3
stack setup
echo 'main = putStrLn "Hello, world!"' > test.hs
time stack ghc --compiler ghc-8.0.2 -- test
time ./test
time stack ghc --compiler ghc-7.10.3 -- test
time ./test
Required packages and commands to install:
Bug is also filed here
The text was updated successfully, but these errors were encountered: