What’s so worrying? As I see it, C# performs worse than java, except for trigonometry.
yes, and if C# & java is “the same thing”, how come java is slower than C# ?
Ah, there was another benchmark floating around which I was referring to that shows apples->apples Java and C# along with about 100 other mostly obscure languages. The C# code generation’s good.
It’s mainly a bummer if you’re doing trig of course And games programmers do tend to use those trig functions rather a lot…
Cas
[quote]yes, and if C# & java is “the same thing”, how come java is slower than C# ?
[/quote]
You’re losing me. Is it? :
Discounting trig, scores in this benchmark are
java: 46.1
C#: 61.2
[quote]Ah, there was another benchmark floating around
[/quote]
Googled around but didn’t find it. You have a link?
You mean the windows::developer benchmark?
quote from the summary:
and
[quote]C# is significantly faster (3–4 times) at memory
allocation than Java.
[/quote]
which is worrying I suppose. The benchmark mentioned in this thread didn’t measure memory allocation.
I was talking about trig!
C#: 4.1
Java: 57.1
C# is 12 times faster than Java!
I created a trig lookup table. It’s only 4 times as fast as java.lang.Math with float accuracy on the client. The strange this is when I use the server, performance severely degrades: with the table more (almost 4x as slow) as java.lang.math (takes ‘only’ 30% more time).
Maybe ‘microbenchmarking problem’ (which the ‘osnews’ benchmark also suffers from)? Or a server bug? Hard to tell… :-/
[quote]You mean the windows::developer benchmark?
[/quote]
To paraphrase one of my favorite Mark Twain quotes:
“There are three kinds of lies. Lies, damn lies, and benchmarks.”
When i talk I tell the people in the room not to trust anyones benchmarks. Don’t trust those with a vested interest, because they all cheat (so called “benchmarketing”).
Don’t naively trust third party benchmarks because you don’t know how much they really knew about the black art of benchmarking (usually its next to nothing.)
Its just like statistics. The numbers mean nothing until they are interpreted. Interpretation is prone to error. Look at the WHOLE study and use your own brain to decide if the methodology really warrants the conclusions. And then do your OWN tests with your OWN apps, because they are the final performance measure you really care about.
“50% of the US highschool graduates graduated in the bottom half of their class!” – “How to lie with statistics”