summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2019-07-17 06:58:44 -0400
committerDan Davison <dandavison7@gmail.com>2019-07-17 13:01:15 -0400
commit2560cdaa5adf2cb6e9fb60846368d162994781e8 (patch)
tree030c9051d7a202dbb641e116a5218503648628c8 /Makefile
parent6b033a3b0a7fa859354ff2c21e1fb4e5fe4a1cc2 (diff)
Performance visualization
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 52efd618..4f3cde69 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,13 @@ test:
--hunk-style plain \
| ansifilter | cut -c 2-)"
-hyperfine:
- ./scripts/build-commits.sh master
- git log -p 23c292d3f25c67082a2ba315a187268be1a9b0ab > /tmp/input.gitdiff
- ./scripts/hyperfine-commits.py /tmp/input.gitdiff /tmp/hyperfine.json /tmp/delta
+EXECUTABLES_DIRECTORY := /tmp/delta
+GIT_DIFF_INPUT := ./performance/data/input.gitdiff
+HYPERFINE_OUTPUT := ./performance/data/hyperfine-output.json
+HYPERFINE_PROCESSED_OUTPUT := ./performance/data/hyperfine-processed-output.json
+
+benchmark:
+ ./performance/build-commits.sh master $(EXECUTABLES_DIRECTORY)
+ git log -p 23c292d3f25c67082a2ba315a187268be1a9b0ab > $(GIT_DIFF_INPUT)
+ ./performance/benchmark-commits.py $(GIT_DIFF_INPUT) $(EXECUTABLES_DIRECTORY) $(HYPERFINE_OUTPUT)
+ ./performance/transform-benchmark-data.py < $(HYPERFINE_OUTPUT) > $(HYPERFINE_PROCESSED_OUTPUT)