'make bench': Create csv files for comparison.

This commit is contained in:
John MacFarlane 2021-02-18 23:22:18 -08:00
parent 98d26c2345
commit b2b32d9bb2
3 changed files with 4 additions and 3 deletions

View file

@ -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) pandoc=$(shell find dist -name pandoc -type f -exec ls -t {} \; | head -1)
SOURCEFILES?=$(shell git ls-tree -r master --name-only | grep "\.hs$$") SOURCEFILES?=$(shell git ls-tree -r master --name-only | grep "\.hs$$")
BRANCH?=master BRANCH?=master
COMMIT=$(shell git rev-parse --short HEAD)
GHCOPTS=-fdiagnostics-color=always GHCOPTS=-fdiagnostics-color=always
WEBSITE=../../web/pandoc.org WEBSITE=../../web/pandoc.org
REVISION?=1 REVISION?=1
@ -38,7 +39,7 @@ ghcid:
ghcid -c "stack repl --flag 'pandoc:embed_data_files'" ghcid -c "stack repl --flag 'pandoc:embed_data_files'"
bench: bench:
stack bench --benchmark-arguments='$(BENCHARGS)' --ghc-options '$(GHCOPTS)' stack bench --benchmark-arguments='$(BENCHARGS) --csv bench-$(COMMIT).csv' --ghc-options '$(GHCOPTS)'
weigh: weigh:
stack build --ghc-options '$(GHCOPTS)' pandoc:weigh-pandoc && stack exec weigh-pandoc stack build --ghc-options '$(GHCOPTS)' pandoc:weigh-pandoc && stack exec weigh-pandoc

View file

@ -827,6 +827,6 @@ benchmark benchmark-pandoc
build-depends: bytestring, build-depends: bytestring,
containers, containers,
tasty, tasty,
tasty-bench >= 0.1 && <= 0.2, tasty-bench >= 0.2 && <= 0.3,
mtl >= 2.2 && < 2.3, mtl >= 2.2 && < 2.3,
time time

View file

@ -11,7 +11,7 @@ extra-deps:
- commonmark-0.1.1.4 - commonmark-0.1.1.4
- commonmark-extensions-0.2.0.4 - commonmark-extensions-0.2.0.4
- commonmark-pandoc-0.2.0.1 - commonmark-pandoc-0.2.0.1
- tasty-bench-0.1 - tasty-bench-0.2.1
- citeproc-0.3.0.7 - citeproc-0.3.0.7
#- citeproc: #- citeproc:
# git: https://github.com/jgm/citeproc.git # git: https://github.com/jgm/citeproc.git