Skip to content

Instantly share code, notes, and snippets.

@duog
Last active August 10, 2017 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duog/2462bc4317b3aceb2bcf288be7e261af to your computer and use it in GitHub Desktop.
Save duog/2462bc4317b3aceb2bcf288be7e261af to your computer and use it in GitHub Desktop.
Benchmark improve parallel --make
#!/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
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