« Google knows more about me (than I do) | Main | Adding Python and Jython to the Performance Shootout »

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.

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/

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.

Pascal Grange:

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

About

This page contains a single entry from the blog posted on August 28, 2005 11:40 PM.

The previous post in this blog was Google knows more about me (than I do).

The next post in this blog is Adding Python and Jython to the Performance Shootout.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.33