Re:Go concurrency isn't parallelism: Real world lessons with...
by wpeterson on Saturday February 07, 2015 @12:25PM
(#9014598)
It looks like you didn't allow for using more than a single process by setting GOMAXPROCS.
Additionally, it looks like you're re-seeding your random engine inside your sample loop, which is very slow. You only need to seed the engine outside the loop at the beginning.
Additionally, it looks like you're re-seeding your random engine inside your sample loop, which is very slow. You only need to seed the engine outside the loop at the beginning.