Peaked at #3 Now #5
Language benchmark bias debated
A developer argues language performance comparisons are heavily biased by suboptimal code, making most benchmarks useless without deep language and hardware knowledge.
Key points
- @theredpix posted a C++ version for the test and reported that it is 1.78x faster than the improved C# one by @axeng200.
- @theredpix said they were annoyed by posts on their feed claiming C# was faster than C++/C.
- @SebAaltonen argued that language performance comparisons are often heavily biased and that most benchmarks have sub-optimal code, making them useless.
Key points and the reaction summary are written by AI from the posts on this page. Check the original post. How we use AI
Original post
Language performance comparisons are often heavily biased. So easy to make 10x+ slower code on pretty much every language. Have to understand the language and the hardware to make speed-of-light code. Most benchmarks have sub-optimal code, making them useless.Quoting @theredpix: Actually, it should be #cpp
I read some posts on my feed saying that C# was faster than C++/C.
It got me a little annoyed.
So decided to pop a proper C++ version for the test; here are the results:
The C++ implementation here is
1.78x faster than the improved C# one by @axeng200
#programming #csharp #gamedev #screenshotSaturday #ComputerScience
Discussion 0
Sign up Sign in to join the discussion
No comments yet. Start the conversation.