[Aside: please don't paste images or coloured text. They're very hard to
read]
It's perfectly normal for your code to be interrupted once every 10ms or so
for async preemption. You'll see a load of system calls, but it should not
be making your code run "slowly". If you find that "most of the
Hi Cheng, I'm not sure I understand your question, but here's what little I
know about the preempt function.
runtime.asyncPreempt is used to implement asynchronous preemption.
Basically, the go runtime scheduler occasionally suspends the execution of
a goroutine to check if it has been running
here is the go env
`
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/dongcheng/.cache/go-build"
GOENV="/home/dongcheng/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPRIVATE=""