Here is another server benchmark but this time multithreaded. It should correctly find the number of CPU cores on your system and use 100% CPU in an attempt to maximize performance
I used C++11 Lambdas to make this multithreading benchmark code really easy to do. However it added nearly 200KB to the binary in doing so! Since I won’t use lambdas in any other place it isn’t that big a deal but I was really surprised that so little code could bloat the binary so much. Beware of using C++11 features blindly!