Bits and Chaos


Between bits and chaos, a sysadmin stands.

The day that Ruby was as fast as PHP

The main objection against Ruby on Rails it’s about its performances, especially when they are compared to PHP. Although it’s cheaper to add up new computational power (or lease it from services like Amazon EC2) than pay for more developers, this objection has some real reason. Ruby 1.8.x is not really fast, and this is a problem for every framework built on top of it as RoR, but things are changing, as this benchmarks from Antonio Cangiano shows:

  • Ruby 1.9 is 2-3 times faster than Ruby 1.8.6;
  • JRuby is now as fast as Ruby 1.8.6, so you can now get all the power of Ruby on a Java application server;
  • There’s a lot of room for improvements, as some other projects (XRuby, Rubinius) indicate.

Filed under: ruby on rails, , ,

2 Responses

  1. Ed says:

    I’m curious about the title of this entry: Do you know of any PHP benchmarks out there on terms with the Ruby benchmark you reference that actually leads to the deduction that Ruby is now approaching/reached PHP speeds? Thanks!

  2. Comparison should be done on the same level, so PHP should be compared with Rails and not Ruby. Anyway, I could not point to a benchmark, its’ just something I heard (the 3x speed gap) and take for granted.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: