Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Eveheeero opened this issue Jul 12, 2023 · 2 comments
Open

Comments

@Eveheeero
Copy link

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.

@cyrusmsk
Copy link
Contributor

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

@Eveheeero
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants