Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 331
pistacchio Avatar asked Jun 26 '09 13:06

pistacchio


2 Answers

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.

like image 183
Rasmus Faber Avatar answered Sep 21 '22 16:09

Rasmus Faber


Here's a nice recent study on the subject:

Numeric performance in C, C# and Java

Peter Sestoft ([email protected])

IT University of Copenhagen Denmark

Version 0.9.1 of 2010-02-19

Abstract:We compare the numeric performance of C, C# and Java on three small cases.

...

like image 30
Ohad Schneider Avatar answered Sep 19 '22 16:09

Ohad Schneider