Skip to content

Commit

Permalink
split benchmark and benchmark_w_memprofile, include memprofile files …
Browse files Browse the repository at this point in the history
…to gitignore
  • Loading branch information
puellanivis committed Mar 17, 2021
1 parent 325cdac commit 32f98f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ server_standalone/server_standalone

examples/*/id_rsa
examples/*/id_rsa.pub

memprofile.out
memprofile.svg
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ COUNT ?= 1
BENCHMARK_PATTERN ?= "."

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

0 comments on commit 32f98f3

Please sign in to comment.