ericmoritz / wsdemo

A Cowboy Websocket demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go: do not use multiple cores

piranha opened this issue · comments

I believe Go will perform better with a single core, since right now it's just limited by scheduler, switching between different goroutines. As goroutines are not doing anything CPU-bound, this is just slowing down of a program.

I've tested this about a hour ago. On my i7-2600K@4.6GHz with HT (= 8 cpu cores) there was no noticeable difference.

Hm, interesting. Ok then, no point in keeping this issue opened.