From: Nathan Keel Date: 2009-08-26T06:20:06+09:00 Subject: Re: Comparison Ruby, Python, Php, Groovy ecc. Marco Mastrodonato wrote: > Comparison script languages for the fractal geometry, these are the > languages i tested: > > Java > Lua 5.1.4 > Php 5.3.0 > Python 2.6.2 > Python 3.1.1 > Jython 2.5.0 > Groovy 1.6.3 > Jruby 1.3.1 > Ruby 1.9.1 p129 > Ruby 1.8.6 p368 > Ruby 1.8.6 p111 > IronRuby 0.9.0 > IronPython 2.0.2 > Perl 5.10.0 > > Let me know yours comment > > http://mastrodonato.info/index.php/2009/08/comparison-script-languages-for-the-fractal-geometry/?lang=en A decent try and honest, but there are too many variables involved. Even a quick look at the Perl code could use a little fine tuning (it looked like v4 code in a lot of ways (from 15 years ago), improperly using local, etc.), and where there are wasteful assignments (not a big deal). I'd recommend posting the code in their respective news groups and asking for any advice on how to speed up the code/write it more efficiently, and see what people come up with. Implementing the same code essentially the same way in different languages may show a slower time elapsed, but perhaps if you recoded it in a way to take advantage of that language you would see some (slightly, but important) differences in your results. Don't get me wrong, I appreciate what you're doing here and it's a good attempt, I just think there are too many variables. I haven't ran Windows for a long time, but I wouldn't be surprised if a *nix variant provided different results (I know it does for me on Linux using a very comparable system). For that matter, you might offer something in C and C++ to compare to compiled Java, unless you believe that those aren't viable comparison languages for some reason? (If so, know that myself and many others develop online and offline using them, because they are faster and sometimes that's important with huge trafficked sites where every tiny otherwise trivial thing makes a difference).