![]() If you have better ideas, please feel free to use the code and publish a follow-up or comment with your results, and I'll update the post with it and attribute you.Īll the implementations used in this comparison can be found in the nosleep branch of this GitHub repository. It's still not scientific or the best way to benchmark concurrency. I have since updated the post with more benchmarks using different tools. Update: Despite the above disclaimer, people were still mad at me for using thread.sleep to simulate blocking and for using ApacheBench for this benchmark. If you think this benchmark is useless, well, please suggest a better one :) If you think the code for a particular language can be improved out of the box to enhance concurrency performance, let me know. Also, my knowledge of some languages is better than others hence I might miss some optimizations here and there. I'm just trying to provide some simple base comparisons for a simple use case. I'm pretty sure different use cases will have different results, and real-world web servers will have more complexity that requires communication between concurrent processes affecting performance.
0 Comments
Leave a Reply. |