5.1. Python vs. Perl vs. Java vs. C++

the graph of the benchmark results

Python code for the benchmarks:

Conclusion:
Python Java C++
Development Fast and easy. Very simple to hack things up in. Dynamic typing etc can often result in finding bugs at runtime that would have been found earlier in a statically typed language. Fair. Longwinded syntax makes it slow going, but helps produce solid code. Enforced exception handling, bounds checking and toString help make debugging easy. OK to write in. Templates work well, and the STL is generally OK. Debugging can be a nightmare.
Execution speed Slow Good (modulo VM startup). Swing performance is still slugish, but it is also very capable. A little thought (or experience) is important in order to get the best speed. Superb, even when you're not trying.
Libraries Good default libraries. A number of solid free 3rd party non-standard libraries (ie wxPython). Superb standard libraries, very broad and useful. Limited standard libraries, but lots of 3rd party libraries.
Portability Very good. Very good. Fair, with experience.
(courtesy of the benchmark author)

The testing machine was a Pentium II @ 350MHz.