File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -64,16 +64,20 @@ fast_check_generated:
64
64
65
65
# Benchmark with a local version
66
66
# LINTER=gosec VERSION=v1.59.0 make bench_local
67
- bench_local :
67
+ bench_local : hyperfine
68
68
@./scripts/bench/bench_local.sh $(LINTER ) $(VERSION )
69
69
.PHONY : bench_local
70
70
71
71
# Benchmark between 2 existing versions
72
72
# LINTER=gosec VERSION_OLD=v1.58.2 VERSION_NEW=v1.59.0 make bench_version
73
- bench_version :
73
+ bench_version : hyperfine
74
74
@./scripts/bench/bench_version.sh $(LINTER ) $(VERSION_OLD ) $(VERSION_NEW )
75
75
.PHONY : bench_version
76
76
77
+ hyperfine :
78
+ @which hyperfines > /dev/null || (echo " Please install hyperfine https://github.com/sharkdp/hyperfine#installation" && exit 1)
79
+ .PHONY : hyperfine
80
+
77
81
# Non-PHONY targets (real files)
78
82
79
83
$(BINARY ) : FORCE
You can’t perform that action at this time.
0 commit comments