Search code examples
c#java.netbenchmarking

Java vs C#: Are there any studies that compare their execution speed?


Taking out all of the obvious caveats related to benchmarks and benchmark comparison, is there any study (an array of well documented and unbiased tests) that compares the average execution speed of the two mentioned languages? Thanks


Solution

  • The best comparison that I am aware of is The Computer Language Benchmarks Game.

    It compares speed, memory use and source code size for (currently) 10 benchmarks across a large number of programming languages. The implementations of the benchmarks are user-submitted and there are continuous improvements, so the standings shift around somewhat.

    The comparison is currently openjdk vs C# .NET Core.

    Currently it is close, but .NET Core is slightly faster on most benchmarks.