4 ms·
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 ins
by wpeterson 12y ago
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.
- soroushjp 12y agoFixed the issue, thanks wpeterson