github.com/bibaroc/wingman@v0.0.2-0.20200911182922-33c2085136b1/Makefile (about)

     1  regen:
     2  	stringer -linecomment -type LogLevel ./pkg/logger
     3  
     4  prepare:
     5  	go get -u golang.org/x/perf/cmd/benchstat
     6  	go get -u golang.org/x/tools/cmd/stringer
     7  	go get -u github.com/google/go-cmp/cmp
     8  
     9  bench:
    10  	go test ./pkg/logger -benchmem -bench . -run '' -count 5 | tee tmp/logger.txt
    11  	@benchstat tmp/logger.txt
    12  	go test ./pkg/fst -benchmem -bench . -run '' -count 5 | tee tmp/fst.txt
    13  	@benchstat tmp/fst.txt