Skip to content

Commit 34a0e3e

Browse files
committed
review: check hyperfine installation
1 parent 8544791 commit 34a0e3e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Makefile

+6-2
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,20 @@ fast_check_generated:
6464

6565
# Benchmark with a local version
6666
# LINTER=gosec VERSION=v1.59.0 make bench_local
67-
bench_local:
67+
bench_local: hyperfine
6868
@./scripts/bench/bench_local.sh $(LINTER) $(VERSION)
6969
.PHONY: bench_local
7070

7171
# Benchmark between 2 existing versions
7272
# LINTER=gosec VERSION_OLD=v1.58.2 VERSION_NEW=v1.59.0 make bench_version
73-
bench_version:
73+
bench_version: hyperfine
7474
@./scripts/bench/bench_version.sh $(LINTER) $(VERSION_OLD) $(VERSION_NEW)
7575
.PHONY: bench_version
7676

77+
hyperfine:
78+
@which hyperfines > /dev/null || (echo "Please install hyperfine https://github.com/sharkdp/hyperfine#installation" && exit 1)
79+
.PHONY: hyperfine
80+
7781
# Non-PHONY targets (real files)
7882

7983
$(BINARY): FORCE

0 commit comments

Comments
 (0)