Jon Skeet [C# MVP] wrote:
> Even running .NET rather than Mono will only go so far - you'd need to
> run it on both 64 bit and 32 bit platforms, as the runtimes do
> different things. (IIRC the 64 bit CLR uses tail recursion more heavily
> than the 32 bit CLR, for instance.)
>
> If I were to find a really slow JVM, would that prove that Java is a
> slower *language* than C#?
It is even more complex than that.
MS .NET 1.1, MS .NET 2.0, Mono 1.1, Mono 1.2
Win32/x86, Win64/x86, Win64/IA64, Linux/x86, MacOS X, Solaris/SPARC
that is 14 combinations.
If the benchmark involves file IO, then it would be relevant to
test different file systems on Linux as well.
For Java it is much worse.
1.4.2, 1.5.0, 1.6.0
SUN, IBM, BEA, Oracle
client VM, server VM
3-4 platforms per vendor
and a ton of VM tuning options
I would need to use BigInteger to calculate the number of combinations.
And believe me - there are huge differences in performance
characteristics between SUN, IBM and BEA !
I would say that trying to compare the speed of Java with the speed
of .NET reveals a big lack of knowledge about both Java and .NET !
Arne
|