Powered by
Movable Type 3.14
this site is a java.blog

August 28, 2005

BeanShell, Rhino and Java -- A Performance Comparison

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.

Posted by pankaj at August 28, 2005 11:40 PM
Comments

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 on August 29, 2005 06:37 AM

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 on August 29, 2005 02:30 PM

May be you can also try groovy : http://groovy.codehaus.org/

Posted by: Pascal Grange on August 31, 2005 01:07 AM
Post a comment
















Disclaimer: Views expressed here are my own and do not represent those of my employer.
© 2001-2005 Pankaj kumar. All Rights Reserved.