« ACME MISSILE BOMB Spotted Blocks from U.S. Capitol | Main | Reading List: The Singularity Is Near »

Tuesday, October 18, 2005

Floating Point Benchmark: Ruby Benchmark Added

I have just posted a Ruby implementation of the floating point benchmark (the original trigonometry-intense fbench, not the FFT-based ffbench) and added results for Ruby 1.8.3 on Linux to the language performance comparison section of the fbench document. Here is the updated relative performance table.

Language Relative
Time
Details
C 1 GCC 3.2.3 -O3, Linux
Visual Basic .NET 0.866 All optimisations, Windows XP
FORTRAN 1.008 GNU Fortran (g77) 3.2.3 -O3, Linux
Java 1.121 Sun JDK 1.5.0_04-b05, Linux
Visual Basic 6 1.132 All optimisations, Windows XP
Ada 1.401 GNAT/GCC 3.4.4 -O3, Linux
Lisp 7.41
19.8
GNU Common Lisp 2.6.7, Compiled, Linux
GNU Common Lisp 2.6.7, Interpreted
Python 17.6 Python 2.3.3 -OO, Linux
Perl 23.6 Perl v5.8.0, Linux
Ruby 26.1 Ruby 1.8.3, Linux
JavaScript 27.6
39.1
46.9
Opera 8.0, Linux
Internet Explorer 6.0.2900, Windows XP
Mozilla Firefox 1.0.6, Linux
QBasic 148.3 MS-DOS QBasic 1.1, Windows XP Console

The benchmark uses no Ruby 1.8.x-specific features; it has been tested on version 1.6.8 as well and yields identical results. No warnings are reported by the -w option on either version.

This update also includes a few cosmetic clean-ups to the Python version of the benchmark; they make no difference in the performance or results.

Posted at October 18, 2005 01:17