NoFOMO
Search 中EN Sign in Sign up

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.

Rank over time

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

Sebastian Aaltonen @SebAaltonen 59.5K followers

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
191likes 12reposts 17replies 8,381views

View on X Save

Discussion 0

No comments yet. Start the conversation.

Suggest a source

Is there a first-hand source we're missing, or a topic we should watch? Tell us. Once approved, everyone's board covers it.

@username or profile link