News for hackers. Stuff that matters.
Re:Make your program slower with threads by onestone on Sunday December 07, 2014 @09:56AM (#8712327)
It's unlikely the single-threaded version was improved noticeably. Futexes are nearly zero-cost when not contended.
Re:Make your program slower with threads by mjb on Sunday December 07, 2014 @10:31AM (#8712428)
I left the random_r numbers with single threads out of the post for exactly this reason. Performance with random_r on a single thread was less than 3% faster, with a slightly higher variance (which I can't explain, to be honest).