Adjust benchmark command

This commit is contained in:
Dan Davison 2021-11-27 11:20:16 -05:00
parent 52ce4c3443
commit 1e1bd6b6b9

View File

@ -33,7 +33,8 @@ BENCHMARK_INPUT_FILE = /tmp/delta-benchmark-input.gitdiff
BENCHMARK_COMMAND = git log -p 23c292d3f25c67082a2ba315a187268be1a9b0ab
benchmark: build
$(BENCHMARK_COMMAND) > $(BENCHMARK_INPUT_FILE)
hyperfine 'target/release/delta --no-gitconfig < $(BENCHMARK_INPUT_FILE) > /dev/null'
hyperfine --warmup 10 --min-runs 20 \
'target/release/delta --no-gitconfig < $(BENCHMARK_INPUT_FILE) > /dev/null'
# https://github.com/brendangregg/FlameGraph
flamegraph: build