mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
tools: make buildtimes*: switch to GHC 9.2, add unoptimised variants
On mac m1, 9.2 builds almost 3x faster than 9.0, and building unoptimised gives another 2x speedup.
This commit is contained in:
parent
e93e4ed5a7
commit
0818c44a6c
16
Makefile
16
Makefile
@ -249,12 +249,20 @@ build: \
|
|||||||
$(STACK) build
|
$(STACK) build
|
||||||
|
|
||||||
buildtimes: \
|
buildtimes: \
|
||||||
$(call def-help,buildtimes, build hledger showing just GHC codegen times/allocations)
|
$(call def-help,buildtimes, build hledger with GHC 9.2 showing just GHC codegen times/allocations)
|
||||||
time ($(STACK) build hledger --force-dirty --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep 'CodeGen \[.*time=')
|
time ($(STACK) --stack-yaml=stack9.2.yaml build hledger --force-dirty --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep -E '\bCodeGen \[.*time=')
|
||||||
|
|
||||||
|
buildtimes-fast: \
|
||||||
|
$(call def-help,buildtimes-fast, build hledger unoptimised with GHC 9.2 showing just GHC codegen times/allocations)
|
||||||
|
time ($(STACK) --stack-yaml=stack9.2.yaml build hledger --fast --force-dirty --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep -E '\bCodeGen \[.*time=')
|
||||||
|
|
||||||
buildtimes-cabal: \
|
buildtimes-cabal: \
|
||||||
$(call def-help,buildtimes-cabal, build hledger showing just GHC codegen times/allocations avoiding double compilation)
|
$(call def-help,buildtimes-cabal, build hledger with GHC 9.2 showing just GHC codegen times/allocations avoiding double compilation)
|
||||||
cabal clean; time (cabal build ./hledger-lib ./hledger --disable-library-vanilla --enable-executable-dynamic --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep 'CodeGen \[.*time=')
|
cabal clean; time (cabal build -w ghc9.2 ./hledger-lib ./hledger --disable-library-vanilla --enable-executable-dynamic --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep -E '\bCodeGen \[.*time=')
|
||||||
|
|
||||||
|
buildtimes-cabal-fast: \
|
||||||
|
$(call def-help,buildtimes-cabal-fast, build hledger unoptimised with GHC 9.2 showing just GHC codegen times/allocations avoiding double compilation)
|
||||||
|
cabal clean; time (cabal build -w ghc-9.2 -O0 ./hledger-lib ./hledger --disable-library-vanilla --enable-executable-dynamic --ghc-options='-fforce-recomp -ddump-timings' 2>&1 | grep -E '\bCodeGen \[.*time=')
|
||||||
|
|
||||||
# check-setup: \
|
# check-setup: \
|
||||||
# $(call def-help,check-setup,\
|
# $(call def-help,check-setup,\
|
||||||
|
Loading…
Reference in New Issue
Block a user