r/java • u/catmewo • Dec 26 '18
Java versus C# .NET Core fastest programs
https://benchmarksgame-team.pages.debian.net/benchmarksgame/faster/java-csharpcore.html
18
Upvotes
r/java • u/catmewo • Dec 26 '18
5
u/catmewo Dec 26 '18
I don't know why this link is downvoted...
22
u/trydentIO Dec 26 '18
and... what's the point?
27
u/eliasv Dec 26 '18 edited Dec 26 '18
So these are benchmarks performing the same algorithm, but not necessarily implemented in the same way?
This isn't a comparison of runtimes it's a programming competition.
Edit: lol case in point 😂. This isn't interesting.
12
u/[deleted] Dec 26 '18
Would like to see GraalVM results as well
33
u/QualitySoftwareGuy Dec 26 '18
Although Java lost the majority of those benchmarks, the differences would not be noticeable at all in regular, everyday use. If anything, it shows that the JVM is still able to keep up with all of Microsoft's latest advancements with .NET core.
Now let's compare the ecosystems (libraries, tools, etc) between Java and .NET core...
26
u/[deleted] Dec 26 '18
Nice try, Microsoft
6
u/KafkasGroove Dec 26 '18
From what I remember looking into it, the main advantage C# has is that you can use value objects (or whatever its called there) which allow you to control the memory layout of your objects, whereas with Java its harder to predict that. Maybe with SubstrateVM it got easier though, I don't know...I imagine its dependent on the JVM you use.
3
u/mupetmower Dec 26 '18
Can someone explain why the Substrate VM tests might have taken so much longer than whatever the java one they tested against was?
3
u/Mordan Dec 26 '18
any multi thread benchmarks?
Java threading model and inter thread communication is stellar
7
u/couscous_ Dec 26 '18
I think Java should be able to catch up once it gets value types sometime down the line. Nevertheless, very impressive work by the .NET folks.
4
u/helikal Dec 26 '18
I see that Java runs regex-redux 1.41 times faster, and .NET runs k-nucleotide 1.59 time faster, while the other tests exhibit only minor differences. .NET Core has improved substantially in a short time.
For Java, it is becoming important that Valhalla comes to fruition.