github.com/ii64/gouring@v0.4.1/bench/perf/Makefile (about)

     1  alL: run
     2  
     3  N := 10000000
     4  PERF_OPTS := -n $(N) -noti 5000000
     5  
     6  GCFLAGS := $(GCFLAGS)
     7  #GCFLAGS += -m=2
     8  #GCFLAGS += -l=4
     9  
    10  build:
    11  	go build -gcflags="$(GCFLAGS)" .
    12  
    13  run: build
    14  	./perf $(PERF_OPTS) -pprofCpu pprof-nonsqpoll.cpu
    15  	./perf -sqpoll $(PERF_OPTS) -pprofCpu pprof-sqpoll.cpu
    16  
    17  pprof:
    18  	go tool pprof -http=:9001 $(P)