summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-15 21:22:30 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-15 21:22:30 -0800
commit4a3320a75c7eaf2f3f5451ab0bc0ef4e3f2e1554 (patch)
treedc12a576c826151cf7381748b22a1448438f1cd0 /Makefile
parent9989d80d3b1e9d30c92034164108de4590b7ddb9 (diff)
bench target: Added BENCHPATT.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8cf34f6..0a9ce88 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ SPECVERSION=$(shell perl -ne 'print $$1 if /^version: *([0-9.]+)/' $(SPEC))
PKGDIR?=cmark-$(SPECVERSION)
TARBALL?=cmark-$(SPECVERSION).tar.gz
FUZZCHARS?=2000000 # for fuzztest
+BENCHPATT?="processing lines" # for bench
PROG?=$(BUILDDIR)/src/cmark
BENCHINP?=README.md
JSMODULES=$(wildcard js/lib/*.js)
@@ -95,7 +96,7 @@ bench:
{ for x in `seq 1 100` ; do \
/usr/bin/env time -p ${PROG} progit.md >/dev/null ; \
done \
- } 2>&1 | grep 'processing lines' | \
+ } 2>&1 | grep ${BENCHPATT} | \
awk '{print $$3;}' | \
Rscript -e 'summary (as.numeric (readLines ("stdin")))'