views:

513

answers:

2

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

Which one would be faster? I imagine C# since it's basically targeted only towards Windows.

Assuming either one is faster, in practice, would that difference be noticeable, assuming the programs to be about the same and coded by people with similar experience?

+1  A: 

performance comparisons between java, c++, and c#:

http://reverseblade.blogspot.com/2009/02/c-versus-c-versus-java-performance.html

John Boker
+1 Although it would've been useful of him to specify what compiler settings he used :(
Skurmedel
Come on. Benchmarking is a little more difficult than that. A few microbenchmarks? Apparently Java 1.6 runs computational intensive tasks much faster on Windows on Linux? How? (Potentially it could be different implementations of Java, that doesn't seem to be specified.)
Tom Hawtin - tackline
+2  A: 

Both C# and Java are pretty even. C# is not targeted to any OS. There are parts of the .net framework that are but even those parts can be ignored if you use Mono and GTK#

perhaps it must be Java is not targeted to any OS ?
balalakshmi
neither is C#.C# and Java use the same technologies, namely, a Virtual Machine/Common Language Runtime. Each language compiles down to IL code for their respective intermediate systems and make use of JIT compiling. The libraries they use can be very focused on an OS, or if you choose well, you can get libraries that are OS agnostic.