summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-04-16 12:02:43 -0400
committerDan Davison <dandavison7@gmail.com>2020-04-16 12:10:19 -0400
commit268887c7d74d2f999fa1f88478239acb5028f867 (patch)
tree4709582653a72119af74f7d78fc01019ccc7e26c /Makefile
parentf2ca71750c5bcedeaa81e813caeec267834c08d1 (diff)
Add benchmark make target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9294285b..d9fb5a90 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,12 @@ hash:
printf "delta-$$version-x86_64-apple-darwin.tar.gz %s\n" $$(curl -sL https://github.com/dandavison/delta/releases/download/$$version/delta-$$version-x86_64-apple-darwin.tar.gz | sha256sum -) && \
printf "delta-$$version-x86_64-unknown-linux-musl.tar.gz %s\n" $$(curl -sL https://github.com/dandavison/delta/releases/download/$$version/delta-$$version-x86_64-unknown-linux-musl.tar.gz | sha256sum -)
+BENCHMARK_INPUT_FILE = /tmp/delta-benchmark-input.gitdiff
+benchmark: build
+ git log -p 23c292d3f25c67082a2ba315a187268be1a9b0ab > $(BENCHMARK_INPUT_FILE)
+ hyperfine 'target/release/delta < $(BENCHMARK_INPUT_FILE) > /dev/null'
+
chronologer:
chronologer performance/chronologer.yaml
-.PHONY: build lint test unit-test end-to-end-test release vesion hash chronologer
+.PHONY: build lint test unit-test end-to-end-test release vesion hash benchmark chronologer