split benchmark and benchmark_w_memprofile, include memprofile files to gitignore

This commit is contained in:
Cassondra Foesch 2021-03-17 20:17:15 +00:00
parent 325cdac782
commit 32f98f3047
2 changed files with 7 additions and 1 deletions

3
.gitignore vendored
View File

@ -5,3 +5,6 @@ server_standalone/server_standalone
examples/*/id_rsa examples/*/id_rsa
examples/*/id_rsa.pub examples/*/id_rsa.pub
memprofile.out
memprofile.svg

View File

@ -20,5 +20,8 @@ COUNT ?= 1
BENCHMARK_PATTERN ?= "." BENCHMARK_PATTERN ?= "."
benchmark: benchmark:
go test -integration -run=NONE -bench=$(BENCHMARK_PATTERN) -benchmem -memprofile memprofile.out -count=$(COUNT) go test -integration -run=NONE -bench=$(BENCHMARK_PATTERN) -benchmem -count=$(COUNT)
benchmark_w_memprofile:
go test -integration -run=NONE -bench=$(BENCHMARK_PATTERN) -benchmem -count=$(COUNT) -memprofile memprofile.out
go tool pprof -svg -output=memprofile.svg memprofile.out go tool pprof -svg -output=memprofile.svg memprofile.out