Skip to content

Instantly share code, notes, and snippets.

@bgamari
Created July 26, 2019 19:31
Show Gist options
  • Save bgamari/b2157371aaf1374bdece57653cd3f722 to your computer and use it in GitHub Desktop.
Save bgamari/b2157371aaf1374bdece57653cd3f722 to your computer and use it in GitHub Desktop.
linker timings
0.63 4.02
0.64 3.98
0.62 3.93
0.57 3.94
0.63 3.90
0.58 3.88
0.62 3.87
0.68 4.09
0.62 4.09
0.61 4.09
0.45 2.74
0.48 2.71
0.47 2.48
0.45 2.56
0.46 2.48
0.54 3.00
0.47 2.62
0.53 3.10
0.53 2.82
0.52 2.77
0.53 2.84
# Using Cabal/Cabal's Setup.hs as an example
ghc -O Setup.hs
for i in `seq 10`; do
rm Setup
command time -o gold -a -f '%S %U' ghc -O -optl-fuse-ld=gold Setup.hs
rm Setup
command time -o bfd -a -f '%S %U' ghc -O -optl-fuse-ld=bfd Setup.hs
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment