Obsessing about micro benchmarks may not be a very good software development strategy, but I like to write small programs that tell me about relative cost of doing the same thing in different ways very insightful. It is also a good way to motivate myself learn about new technologies -- afterall, what would be a better way to learn than by doing analogies and comparisons.
So, now that I am evaluating the suitability of my old and trusted BeanShell for future experimentatal projects (more about it in a future post), it was only natural to do some benchmarking. And that is what I did. I wrote Bubble Sort programs in BeanShell, JavaScript(Rhino) and Java, and ran them under different environments and documented the results.
Comments (3)
Thanks for the interesting work, Pankaj. I would have really loved to have seen how Jython compares to these, as it's quite popular, and many (including us) are using it.
matt
http://www.jython.org/
Posted by Matthew Cornell | August 29, 2005 6:37 AM
Posted on August 29, 2005 06:37
Matt Wrote: Thanks for the interesting work, Pankaj. I would have really loved to have seen how Jython compares to these, as it's quite popular, and many (including us) are using it.
Well, the source code is available. If you can write a Jython equivalent and send that to me then I will run it on the same h/w and report the numbers.
I must confess that I have never used Juthon and my Python skills are bit rusty.
/Pankaj.
Posted by Pankaj Kumar | August 29, 2005 2:30 PM
Posted on August 29, 2005 14:30
May be you can also try groovy : http://groovy.codehaus.org/
Posted by Pascal Grange | August 31, 2005 1:07 AM
Posted on August 31, 2005 01:07