'make bench': Create csv files for comparison.
This commit is contained in:
parent
98d26c2345
commit
b2b32d9bb2
3 changed files with 4 additions and 3 deletions
3
Makefile
3
Makefile
|
@ -2,6 +2,7 @@ version?=$(shell grep '^[Vv]ersion:' pandoc.cabal | awk '{print $$2;}')
|
|||
pandoc=$(shell find dist -name pandoc -type f -exec ls -t {} \; | head -1)
|
||||
SOURCEFILES?=$(shell git ls-tree -r master --name-only | grep "\.hs$$")
|
||||
BRANCH?=master
|
||||
COMMIT=$(shell git rev-parse --short HEAD)
|
||||
GHCOPTS=-fdiagnostics-color=always
|
||||
WEBSITE=../../web/pandoc.org
|
||||
REVISION?=1
|
||||
|
@ -38,7 +39,7 @@ ghcid:
|
|||
ghcid -c "stack repl --flag 'pandoc:embed_data_files'"
|
||||
|
||||
bench:
|
||||
stack bench --benchmark-arguments='$(BENCHARGS)' --ghc-options '$(GHCOPTS)'
|
||||
stack bench --benchmark-arguments='$(BENCHARGS) --csv bench-$(COMMIT).csv' --ghc-options '$(GHCOPTS)'
|
||||
|
||||
weigh:
|
||||
stack build --ghc-options '$(GHCOPTS)' pandoc:weigh-pandoc && stack exec weigh-pandoc
|
||||
|
|
|
@ -827,6 +827,6 @@ benchmark benchmark-pandoc
|
|||
build-depends: bytestring,
|
||||
containers,
|
||||
tasty,
|
||||
tasty-bench >= 0.1 && <= 0.2,
|
||||
tasty-bench >= 0.2 && <= 0.3,
|
||||
mtl >= 2.2 && < 2.3,
|
||||
time
|
||||
|
|
|
@ -11,7 +11,7 @@ extra-deps:
|
|||
- commonmark-0.1.1.4
|
||||
- commonmark-extensions-0.2.0.4
|
||||
- commonmark-pandoc-0.2.0.1
|
||||
- tasty-bench-0.1
|
||||
- tasty-bench-0.2.1
|
||||
- citeproc-0.3.0.7
|
||||
#- citeproc:
|
||||
# git: https://github.com/jgm/citeproc.git
|
||||
|
|
Loading…
Reference in a new issue