Skip to content

Commit 74751bd

Browse files
committed
dev: fix prepare
1 parent ab8df01 commit 74751bd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

scripts/bench/bench_local.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ make build
3333
## Run
3434

3535
hyperfine \
36-
--prepare 'golangci-lint cache clean' "./golangci-lint run --print-issued-lines=false --enable-only ${LINTER}" \
37-
--prepare './golangci-lint cache clean' "./golangci-lint-${VERSION} run --print-issued-lines=false --enable-only ${LINTER}"
36+
--prepare './golangci-lint cache clean' "./golangci-lint run --issues-exit-code 0 --print-issued-lines=false --enable-only ${LINTER}" \
37+
--prepare "./golangci-lint-${VERSION} cache clean" "./golangci-lint-${VERSION} run --issues-exit-code 0 --print-issued-lines=false --enable-only ${LINTER}"
3838

3939
## Clean
4040

scripts/bench/bench_version.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ install "${VERSION_NEW}"
4343
## Run
4444

4545
hyperfine \
46-
--prepare 'golangci-lint cache clean' "./golangci-lint-${VERSION_OLD} run --issues-exit-code 0 --print-issued-lines=false --enable-only ${LINTER}" \
47-
--prepare './golangci-lint cache clean' "./golangci-lint-${VERSION_NEW} run --issues-exit-code 0 --print-issued-lines=false --enable-only ${LINTER}"
46+
--prepare "./golangci-lint-${VERSION_OLD} cache clean" "./golangci-lint-${VERSION_OLD} run --issues-exit-code 0 --print-issued-lines=false --enable-only ${LINTER}" \
47+
--prepare "./golangci-lint-${VERSION_NEW} cache clean" "./golangci-lint-${VERSION_NEW} run --issues-exit-code 0 --print-issued-lines=false --enable-only ${LINTER}"

scripts/bench/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ LINTER=gosec VERSION=v1.59.0 make bench_local
1111
## Benchmark one linter: between 2 existing versions
1212

1313
```bash
14-
LINTER=gosec VERSION_OLD=v1.58.2 VERSION_NEW=v1.59.0 make bench_version
14+
LINTER=gosec VERSION_OLD=v1.58.1 VERSION_NEW=v1.59.0 make bench_version
1515
```

0 commit comments

Comments
 (0)