github.com/tampajohn/gosnowflake@v1.1.1/benchmark/largesetresult/Makefile (about)

     1  ## Setup
     2  setup:
     3  	go get github.com/Masterminds/glide
     4  	go get github.com/golang/lint/golint
     5  	go get github.com/Songmu/make2help/cmd/make2help
     6  
     7  ## Benchmark
     8  profile:
     9  	go test -run none -bench . -benchtime 3s -benchmem -cpuprofile cpu.out -memprofile mem.out
    10  	@echo "For CPU usage, run 'go tool pprof largesetresult.test cpu.out'"
    11  	@echo "For Memory usage, run 'go tool pprof -alloc_space largesetresult.test mem.out'"
    12  
    13  ## Trace
    14  trace:
    15  	go test -trace trace.out
    16  	@echo "Run 'go tool trace largesetresult.test trace.out'"
    17  
    18  ## Lint
    19  lint: setup
    20  	go vet $$(glide novendor)
    21  	for pkg in $$(glide novendor -x); do \
    22  		golint -set_exit_status $$pkg || exit $$?; \
    23  	done
    24  
    25  ## Format source codes using gfmt
    26  fmt: setup
    27  	gofmt -w $$(glide nv -x)
    28  
    29  ## Show help
    30  help:
    31  	@make2help $(MAKEFILE_LIST)
    32  
    33  .PHONY: install run