mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 10:17:35 +03:00
;tools: update instructions for installing quickbench
This commit is contained in:
parent
a4db52aa05
commit
069e672a5c
@ -1341,8 +1341,8 @@ Here are some useful optional tools:
|
|||||||
|
|
||||||
Eg:
|
Eg:
|
||||||
|
|
||||||
stack install ghcid shelltestrunner quickbench hasktags
|
stack install ghcid shelltestrunner hasktags
|
||||||
brew install entr
|
git clone https://github.com/simonmichael/quickbench; cd quickbench; stack install # must run in source dir
|
||||||
|
|
||||||
### Get the code
|
### Get the code
|
||||||
|
|
||||||
|
2
Makefile
2
Makefile
@ -648,7 +648,7 @@ bench: quickbench
|
|||||||
|
|
||||||
quickbench: samplejournals bench.sh $(call def-help,quickbench, benchmark commands in bench.sh with quickbench and $(BENCHEXES))
|
quickbench: samplejournals bench.sh $(call def-help,quickbench, benchmark commands in bench.sh with quickbench and $(BENCHEXES))
|
||||||
@echo; echo "run quick performance benchmarks in bench.sh (approximate, can be skewed):"
|
@echo; echo "run quick performance benchmarks in bench.sh (approximate, can be skewed):"
|
||||||
@which -s quickbench && quickbench -w $(BENCHEXES) || echo "quickbench not installed, skipping"
|
@which -s quickbench && quickbench -w $(BENCHEXES) || echo "quickbench not installed (see bench.sh), skipping"
|
||||||
|
|
||||||
# bench: samplejournals tests/bench.tests tools/simplebench \
|
# bench: samplejournals tests/bench.tests tools/simplebench \
|
||||||
# $(call def-help,bench,\
|
# $(call def-help,bench,\
|
||||||
|
14
bench.sh
14
bench.sh
@ -4,15 +4,23 @@
|
|||||||
# can be affected by system activity. Usually this isn't a problem. The last
|
# can be affected by system activity. Usually this isn't a problem. The last
|
||||||
# (criterion) is more robust.
|
# (criterion) is more robust.
|
||||||
#
|
#
|
||||||
# Generate the test journals: make samplejournals
|
# Generate the test journals:
|
||||||
# Get quickbench: stack install quickbench
|
# make samplejournals
|
||||||
|
#
|
||||||
|
# Get quickbench:
|
||||||
|
# git clone https://github.com/simonmichael/quickbench
|
||||||
|
# cd quickbench
|
||||||
|
# stack install # must be run in source dir
|
||||||
|
#
|
||||||
# Measure performance:
|
# Measure performance:
|
||||||
# time ./bench.sh # show if these work, what they do, total time
|
# time ./bench.sh # show if these work, what they do, total time (GNU time also shows max memory)
|
||||||
# quickbench [OPTS] # time each command, one or more times
|
# quickbench [OPTS] # time each command, one or more times
|
||||||
# make bench # time each command with several hledger versions (BENCHEXES in Makefile)
|
# make bench # time each command with several hledger versions (BENCHEXES in Makefile)
|
||||||
# stack bench hledger # time a different set of benchmarks (bench/bench.hs)
|
# stack bench hledger # time a different set of benchmarks (bench/bench.hs)
|
||||||
# stack bench hledger --ba --criterion # time more carefully, using criterion
|
# stack bench hledger --ba --criterion # time more carefully, using criterion
|
||||||
|
|
||||||
|
# commands to benchmark:
|
||||||
|
|
||||||
# hledger -f examples/100x100x10.journal print
|
# hledger -f examples/100x100x10.journal print
|
||||||
# hledger -f examples/1000x1000x10.journal print
|
# hledger -f examples/1000x1000x10.journal print
|
||||||
hledger -f examples/10000x1000x10.journal print
|
hledger -f examples/10000x1000x10.journal print
|
||||||
|
Loading…
Reference in New Issue
Block a user