Skip to content

Instantly share code, notes, and snippets.

@plukevdh
Created January 30, 2011 01:36
Show Gist options
  • Save plukevdh/802408 to your computer and use it in GitHub Desktop.
Save plukevdh/802408 to your computer and use it in GitHub Desktop.
A quick benchmark of the different flavors of ruby.
$ rvm 1.8.7,1.9.2,ree,rbx,macruby-0.8,jruby benchmark_haversine.rb
## 1.8.7-p330
Rehearsal ---------------------------------------------------
ruby-1.8.7-p330 11.870000 0.030000 11.900000 ( 12.120409)
----------------------------------------- total: 11.900000sec
user system total real
ruby-1.8.7-p330 12.020000 0.040000 12.060000 ( 12.556268)
## 1.9.2-p136
Rehearsal ---------------------------------------------------
ruby-1.9.2-p136 7.670000 0.050000 7.720000 ( 8.282582)
------------------------------------------ total: 7.720000sec
user system total real
ruby-1.9.2-p136 7.600000 0.040000 7.640000 ( 8.242693)
## ree-1.8.7
Rehearsal -----------------------------------------------------
ree-1.8.7-2010.02 6.840000 0.010000 6.850000 ( 6.965676)
-------------------------------------------- total: 6.850000sec
user system total real
ree-1.8.7-2010.02 6.840000 0.020000 6.860000 ( 6.947599)
## rbx-head
Rehearsal --------------------------------------------
rbx-head 4.170389 0.029163 4.199552 ( 5.112614)
----------------------------------- total: 4.199552sec
user system total real
rbx-head 4.078300 0.023216 4.101516 ( 4.393142)
## macruby-0.8
Rehearsal -----------------------------------------------
macruby-0.8 1.360000 0.000000 1.360000 ( 1.443757)
-------------------------------------- total: 1.360000sec
user system total real
macruby-0.8 1.360000 0.020000 1.380000 ( 1.919017)
## jruby-1.5.6
Rehearsal -----------------------------------------------
jruby-1.5.6 3.495000 0.000000 3.495000 ( 3.435000)
-------------------------------------- total: 3.495000sec
user system total real
jruby-1.5.6 2.613000 0.000000 2.613000 ( 2.613000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment