Sorry :) This a mistake here: > It's perf output is about 1000,000 ops/sec :) > > But when you uncomment the runtime.LockOSThread() at line 24(the beginning > at func call_srv),it goes so slow to *100,000/sec* and the cpu usage of > kernel goes into madness. > > Actually it should be 100,000 ops/sec.
Thus 1000,000 ops/sec to 100,000 ops/sec when you uncomment the runtime.LockOSThread() function call. There is a nearly *90% performance penalty* when you using channel with LockOSThread,is it abnormal or just should be expected so slow? (:Hoping I am wrong:) Is it a normal penalty when you using channel with LockOSThread? > > Thanks! ☺ > > ------------ > $ go version > go version go1.7 linux/amd64 > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.