mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
remove benchmark utils (#3982)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
9090c69708
commit
18f9b5ab58
13
.binny.yaml
13
.binny.yaml
@ -87,19 +87,6 @@ tools:
|
|||||||
with:
|
with:
|
||||||
repo: wagoodman/go-bouncer
|
repo: wagoodman/go-bouncer
|
||||||
|
|
||||||
# used for showing benchmark testing
|
|
||||||
- name: benchstat
|
|
||||||
version:
|
|
||||||
want: latest
|
|
||||||
method: go-proxy
|
|
||||||
with:
|
|
||||||
module: golang.org/x/perf
|
|
||||||
allow-unresolved-version: true
|
|
||||||
method: go-install
|
|
||||||
with:
|
|
||||||
entrypoint: cmd/benchstat
|
|
||||||
module: golang.org/x/perf
|
|
||||||
|
|
||||||
# used for running all local and CI tasks
|
# used for running all local and CI tasks
|
||||||
- name: task
|
- name: task
|
||||||
version:
|
version:
|
||||||
|
|||||||
@ -249,27 +249,6 @@ tasks:
|
|||||||
- cmd: .github/scripts/labeler_test.py
|
- cmd: .github/scripts/labeler_test.py
|
||||||
|
|
||||||
|
|
||||||
## Benchmark test targets #################################
|
|
||||||
|
|
||||||
benchmark:
|
|
||||||
deps: [tmpdir]
|
|
||||||
generates:
|
|
||||||
- "{{ .TMP_DIR }}/benchmark-main.txt"
|
|
||||||
cmds:
|
|
||||||
- "go test -p 1 -run=^Benchmark -bench=. -count=7 -benchmem ./... | tee {{ .TMP_DIR }}/benchmark-{{ .VERSION }}.txt"
|
|
||||||
- |
|
|
||||||
bash -c "(test -s {{ .TMP_DIR }}/benchmark-main.txt && \
|
|
||||||
{{ .TOOL_DIR }}/benchstat {{ .TMP_DIR }}/benchmark-main.txt {{ .TMP_DIR }}/benchmark-{{ .VERSION }}.txt || \
|
|
||||||
{{ .TOOL_DIR }}/benchstat {{ .TMP_DIR }}/benchmark-{{ .VERSION }}.txt) \
|
|
||||||
| tee {{ .TMP_DIR }}/benchstat.txt"
|
|
||||||
|
|
||||||
show-benchstat:
|
|
||||||
deps: [benchmark, tmpdir]
|
|
||||||
cmds:
|
|
||||||
- cmd: "cat {{ .TMP_DIR }}/benchstat.txt"
|
|
||||||
silent: true
|
|
||||||
|
|
||||||
|
|
||||||
## Test-fixture-related targets #################################
|
## Test-fixture-related targets #################################
|
||||||
|
|
||||||
fingerprints:
|
fingerprints:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user