-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
22 lines (16 loc) · 942 Bytes
/
makefile
File metadata and controls
22 lines (16 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
assembly:
go build -gcflags="-S" ./test/component-tests/example > dev.S 2>&1
.PHONY: test
test:
go test ./... --cover -coverprofile=reports/coverage.out --covermode atomic --coverpkg=./...
show-coverage-report: test
go tool cover -html=reports/coverage.out
benchmark:
go test -benchmem -bench . ./...
benchmark-profile:
go test -benchmem -bench . ./test/benchmarks/maps --cpuprofile ./reports/benchmark-cpu-maps.pprof --memprofile ./reports/benchmark-mem-maps.pprof -blockprofile ./reports/benchmark-block-maps.pprof
go test -benchmem -bench . ./test/benchmarks/sets --cpuprofile ./reports/benchmark-cpu-sets.pprof --memprofile ./reports/benchmark-mem-sets.pprof -blockprofile ./reports/benchmark-block-sets.pprof
pprof:
go tool pprof --http=:8080 ./reports/benchmark-cpu-sets.pprof ./reports/benchmark-cpu-maps.pprof
pgo:
go tool pprof -proto ./reports/benchmark-cpu-sets.pprof ./reports/benchmark-cpu-maps.pprof > default.pgo