- Commit
- 01954cef95435ec78d12e2e62defe25d5032a087
- Parent
- 83ef1391dca33815c18965e585cf30335bf23e6f
- Author
- John MacFarlane <fiddlosopher@gmail.com>
- Date
More 'make bench' improvements.
My personal build of CMark ✏️
More 'make bench' improvements.
1 file changed, 5 insertions, 4 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | Makefile | 9 | 5 | 4 |
diff --git a/Makefile b/Makefile @@ -10,7 +10,8 @@ PKGDIR?=cmark-$(SPECVERSION) TARBALL?=cmark-$(SPECVERSION).tar.gz ZIPARCHIVE?=cmark-$(SPECVERSION).zip FUZZCHARS?=2000000 # for fuzztest -BENCHPATT?="processing lines" # for bench +BENCHDIR=bench +BENCHFILE=$(BENCHDIR)/benchinput.md PROG?=$(BUILDDIR)/src/cmark BENCHINP?=README.md JSMODULES=$(wildcard js/lib/*.js) @@ -115,7 +116,7 @@ fuzztest: done } 2>&1 | grep 'user\|abnormally' # for benchmarking -benchmark.md: progit/progit.md +$(BENCHFILE): progit/progit.md -rm $@; for x in `seq 1 40` ; do cat $< >> $@; done progit: @@ -124,7 +125,7 @@ progit: progit/progit.md: progit cat progit/en/*/*.markdown > $@ -bench: benchmark.md +bench: $(BENCHFILE) { sudo renice 99 $$$$; \ for x in `seq 1 10` ; do \ /usr/bin/env time -p ${PROG} $< >/dev/null ; \ @@ -141,7 +142,7 @@ distclean: clean -rm -rf *.dSYM -rm -f README.html -rm -f spec.md fuzz.txt spec.html - -rm -rf benchmark.md progit + -rm -rf $(BENCHFILE) progit ### JavaScript ###