Hi Ian,

Thanks for the hint. I tried on a Mac mini with i5-8500B, it seems the 
unexpected performance drop still exists (let GOMAXPROCS(8)) the control 
condition is the CPU:

[image: sync.Mutex performance (GOMAXPROCS == 8).png]


On Monday, August 19, 2019 at 9:15:50 PM UTC+2, Ian Lance Taylor wrote:
>
> On Mon, Aug 19, 2019 at 10:50 AM changkun <euryu...@gmail.com 
> <javascript:>> wrote: 
> > 
> > I am comparing the performance regarding sync.Mutex and Go channels. 
> Here is my benchmark: https://play.golang.org/p/zLjVtsSx9gd 
>
> Might be interesting to try running your benchmark on a machine with 
> different hardware. 
>
> Ian 
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/bf03b161-bfbe-46ff-bd25-8c6143cff126%40googlegroups.com.

Reply via email to