github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/internal/benchmark/Makefile (about)

     1  .PHONY: test
     2  test:
     3  	go test  -gcflags -m -bench=^\(Benchmark_Loop_ImmutableVector_FirstNext\)./...
     4  
     5  .PHONY: prof
     6  prof:
     7  	# GOGC=off go test -cpuprofile cpu.prof -memprofile mem.prof -bench=^\(Benchmark_MapFlattStructure_Slice_PlainOld\|Benchmark_MapFlattStructure_SliceWithoutNilCheck\) .
     8  	go test -cpuprofile cpu.prof -memprofile mem.prof -bench=^Benchmark_Loop_ImmutableVector_FirstNext$$ .
     9  	pprof -http=localhost:8080 ./cpu.prof
    10  
    11  .PHONY: trace
    12  trace:
    13  	go test -trace trace.out -bench=^\(Benchmark_Loop_ImmutableVector_FirstNext\)
    14  	go tool trace -http=localhost:8080 trace.out