Last active
August 10, 2017 04:12
-
-
Save duog/2462bc4317b3aceb2bcf288be7e261af to your computer and use it in GitHub Desktop.
Benchmark improve parallel --make
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# git clone https://github.com/ekmett/lens | |
# git checkout 9a7e43f80188a6e58edafa4b621b622a0a2d0a82 | |
# cd lens | |
# be sure to do a cabal install first to get the packages downloaded | |
cabal sandbox delete -v0 | |
cabal sandbox init -v0 | |
cabal clean -v0 | |
time cabal install -v0 -j1 --with-ghc=/usr/local/bin/ghc --ghc-options="-w -j4 +RTS -A128m -RTS" | |
# the du call is a rough way of ensuring the output is the same | |
du -s .cabal-sandbox | |
cabal sandbox delete -v0 | |
cabal sandbox init -v0 | |
cabal clean -v0 | |
time cabal install -v0 -j1 --with-ghc=/opt/ghc/head/bin/ghc --ghc-options="-w -j4 +RTS -A128m -RTS" | |
du -s .cabal-sandbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BuildFlavour = validate | |
ifneq "$(BuildFlavour)" "" | |
include mk/flavours/$(BuildFlavour).mk | |
endif | |
BUILD_PROF_LIBS = NO | |
SRC_HC_OPTS += -H2g +RTS -A128m -RTS | |
HADDOCK_DOCS = NO | |
stage = 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment