Programming-Language-Benchmarks icon indicating copy to clipboard operation
Programming-Language-Benchmarks copied to clipboard

Benchmark comparison is weird when opposite's implement doesn't exist

Open Eveheeero opened this issue 1 year ago • 2 comments

I came to this site to compare the execution speeds of Java and C++, and I saw the following: the Java source code was the fastest, and the C++ source code didn't even show up in the rankings.

I thought this was odd, so I dug deeper and realized that the algorithm implemented in Java was not implemented in C++.

https://programming-language-benchmarks.vercel.app/cpp-vs-java https://programming-language-benchmarks.vercel.app/java-vs-cpp

In the first link, you can see that C++ and Java are properly compared, but in the second link, it doesn't look right because it is compared to the unimplemented C++ code.

After seeing this, I think it shouldn't show up unless there is code implementing the algorithm in another language.

Eveheeero avatar Jul 12 '23 16:07 Eveheeero

For “mainstream” languages you can check original project: https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/gpp-java.html

cyrusmsk avatar Jul 16 '23 08:07 cyrusmsk

I've seen it, and now I know which language is faster.

I just think it's strange that the "vs" tab on that page shows the execution speed of language A even when there is no implementation of language B, giving the illusion that language A is much faster than language B.

It's not just java vs c++, it's c++ vs csharp or whatever.

Eveheeero avatar Jul 17 '23 01:07 Eveheeero