Monday, February 26, 2007

Ruby Implementations Shootout

Antonio Cangiano reported on Ruby benchmarks recently:

Many brilliant developers are working on improving the current implementation of Ruby and on creating alternatives. I was curious about their current respective speeds, so I installed and ran some benchmarks for the most popular implementations. In this article, I’m sharing the results for the community to see...

Benchmark Environment

My tests were conducted on an AMD Athlon™ 64 3500+ processor, with 1 GB of RAM.

The tested Ruby implementations were:

* Ruby 1.8.5-p12 stable on Linux;
* Ruby 1.8.5-p12 stable on Windows Vista;
* Ruby 1.9 on Linux;
* JRuby on Linux;
* Rubinius on Linux;
* Cardinal on Linux;
* Gardens Point Ruby .NET Beta 0.6 on Windows Vista;

The operating system that was used for all – but Ruby.NET – is Ubuntu 6.10 (for x86). Ruby.NET currently runs on Microsoft Windows only, therefore I’ve used Vista with the .NET Framework 2.0 and have also run Ruby 1.8.5-p12 on Windows as a means of having a more direct comparison with Ruby.NET.