C# versus Java versus C performance

Always a nice topic: my language is faster than your language. In the past we have seen C versus C++, Java versus C++, C# versus Java, Lisp versus C. And probably every other performance comparison you can possibly think of.

And now comes my contribution to his topic. I have downloaded some C code to generate so called swirlies (see one my previous posts). This is a very CPU intensive task. For my GIMP# plug-in I’m going to translate this code to C# and do some measurements. It’s also very easy to translate this to Java. The results will be up here in a few days, so we can settle once and for all which is the best programming language😉 Well, at least performance wise.

Btw, in the past I’ve done similar measurements on small pieces of code and never noticed any substantial differences between C# and Java. Sometimes Java was 10 % faster, sometimes C#. Nothing to get excited about.