We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8544791 commit 34a0e3eCopy full SHA for 34a0e3e
Makefile
@@ -64,16 +64,20 @@ fast_check_generated:
64
65
# Benchmark with a local version
66
# LINTER=gosec VERSION=v1.59.0 make bench_local
67
-bench_local:
+bench_local: hyperfine
68
@./scripts/bench/bench_local.sh $(LINTER) $(VERSION)
69
.PHONY: bench_local
70
71
# Benchmark between 2 existing versions
72
# LINTER=gosec VERSION_OLD=v1.58.2 VERSION_NEW=v1.59.0 make bench_version
73
-bench_version:
+bench_version: hyperfine
74
@./scripts/bench/bench_version.sh $(LINTER) $(VERSION_OLD) $(VERSION_NEW)
75
.PHONY: bench_version
76
77
+hyperfine:
78
+ @which hyperfines > /dev/null || (echo "Please install hyperfine https://github.com/sharkdp/hyperfine#installation" && exit 1)
79
+.PHONY: hyperfine
80
+
81
# Non-PHONY targets (real files)
82
83
$(BINARY): FORCE
0 commit comments