mirror of
https://github.com/ii64/gouring.git
synced 2025-04-26 05:42:48 +02:00
Other adjustments: * Fix miss results, using `SeenCqe` to pop CQ entry. * Increase sqpoll thread cpu to 16. * Fix CQE/SQE to Cqe/Sqe function name. * Fix UserData usage. Benchmark: * Increase number of N to 10_000_000
18 lines
No EOL
316 B
Makefile
18 lines
No EOL
316 B
Makefile
alL: run
|
|
|
|
N := 10000000
|
|
PERF_OPTS := -n $(N) -noti 5000000
|
|
|
|
GCFLAGS := $(GCFLAGS)
|
|
#GCFLAGS += -m=2
|
|
#GCFLAGS += -l=4
|
|
|
|
build:
|
|
go build -gcflags="$(GCFLAGS)" .
|
|
|
|
run: build
|
|
./perf $(PERF_OPTS) -pprofCpu pprof-nonsqpoll.cpu
|
|
./perf -sqpoll $(PERF_OPTS) -pprofCpu pprof-sqpoll.cpu
|
|
|
|
pprof:
|
|
go tool pprof -http=:9001 $(P)
|