3 ms·
From the concurrent prime sieve example? That's just something I copy and pasted from the documentation for the benchmark package I used. Allegedly, it is to p
by joeycumines 3y ago
From the concurrent prime sieve example?
That's just something I copy and pasted from the documentation for the benchmark package I used. Allegedly, it is to prevent "certain compiler optimisations", which is something I'm familiar with when it comes to benchmarking Go code, for example.
I lack specific knowledge as to whether it's actually necessary, sorry :)
- yunohn 3y agoAh, gotcha! I thought maybe it was something to do with concurrency, and somehow x is affected by a race condition there.