Talk:Comparison of C Sharp and Java: Difference between revisions

Content deleted Content added
Tbjablin (talk | contribs)
Speed comparison in Java SE 5.0 and .NET 2003
Line 196:
 
::All good points. And I like your 'large' change. Thanks for the response. -- [[User:Nuggetboy|Chris]] 18:58, 2 August 2005 (UTC)
 
== Speed comparison in Java SE 5.0 and .NET 2003 ==
 
C# is a bit faster then Java and significant faster in nested loops (like matrix multiplication). Also, GUI might be much faster in C# then in Java.
[http://www.tommti-systems.de/go.html?http://www.tommti-systems.de/main-Dateien/reviews/languages/benchmarks.html Performance comparison C++, C# and Java]
[http://molhanec.net/lzma_speed.php LZMA implementation speed comparison]
 
I think this piece of text needs significant revision, and may not be appropriate to the article. The basic premise of the first sentence is that C# is faster than Java in nested loops, but this is contradicted by both of the links the author provides. Furthermore, the links appear to be microbenchmarks, the results of which are frequently not born out in more detailed studies. These tests can be dramatically influenced by how many times a compiler unrolls a tight loop. Also, the first benchmark is of the hotspot client vm, which is much slower than the server version for many tasks.
What exactly is the comparative performance of two languages? Basically, any sort of comparison will be between particular compilers, particular VMs, and particular machines. The language itself doesn't enter into the equation.
If we are going to make a comparison between Java and C# based on performance it should be well-researched position. It would talk about what specific parts of Java or C# effect performance, based on results that are repeatable, significant, and generalizable across the range of supported platforms. For example: Java's floating point implementation is slower than C#'s because Java guarantees the results of floating point calculations across platforms and therefore does not use special hardware.
The second sentence appears to be speculation.
[[User:Tbjablin|Tbjablin]] 07:12, 17 August 2005 (UTC)