So, what happens if we try to mitigate some of these? I picked a single test, rewrote it to run as a web page, and ran it using the latest version of browsers that can be considered stable. The results might surprise you.
n = 10
n = 11
Timings done on a Mac Book Pro 2.4 Gz Core 2 Duo / 4 GB RAM. Parallels/XP means running on Windows XP SP3 inside Parallels on the same computer.
WebKit is nightly build 39090.
WebKit [parallels/xp] is nightly build 39088.
jsc is built from svn rev 39090.
python is 2.5.1.
ruby is 1.8.6.
So, interesting things:
- WebKit is about twice as fast as jsc (the command line interpreter), so the Computer Language Shootout numbers will be inflated.
- Java 6 is substantially faster than Java 5.
(PS: Lisp FTW!)