Skip to content

Instantly share code, notes, and snippets.

@wilson
Created November 13, 2009 21:23
Show Gist options
  • Save wilson/234176 to your computer and use it in GitHub Desktop.
Save wilson/234176 to your computer and use it in GitHub Desktop.
### running this code: http://gist.github.com/234170
### jruby trunk from last week
> jruby sorting.rb
Rehearsal ---------------------------------------------
merge: 1.070000 0.000000 1.070000 ( 1.070000)
nocopy: 0.730000 0.000000 0.730000 ( 0.730000)
------------------------------------ total: 1.800000sec
user system total real
merge: 0.584000 0.000000 0.584000 ( 0.584000)
nocopy: 0.579000 0.000000 0.579000 ( 0.579000)
### rbx with LLVM enabled
> rbx -XJ sorting.rb
Rehearsal ---------------------------------------------
merge: 2.602585 0.000000 2.602585 ( 2.602604)
nocopy: 1.093413 0.000000 1.093413 ( 1.093473)
------------------------------------ total: 3.695998sec
user system total real
merge: 0.868987 0.000000 0.868987 ( 0.868995)
nocopy: 0.577067 0.000000 0.577067 ( 0.577078)
### ruby 1.8.7
> ruby sorting.rb
Rehearsal ---------------------------------------------
merge: 2.300000 0.010000 2.310000 ( 2.321604)
nocopy: 2.470000 0.000000 2.470000 ( 2.477300)
------------------------------------ total: 4.780000sec
user system total real
merge: 2.280000 0.010000 2.290000 ( 2.287364)
nocopy: 2.340000 0.000000 2.340000 ( 2.353944)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment