Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3c29a6e8c0
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (11 sloc) 0.413 kb
Benchmark
If you have a bit of code that you would like to benchmark, across several versions of ruby all at once, you can now do this easily with RVM. Given:
∴ cat increment.rb
y=0
1000.times do |x|
y = x + 1
end
We can benchmark this code against multiple ruby versions very easily:
∴ rvm 1.8.6,1.8.7,1.9.1,ree benchmark increment.rb
Documentation:
https://rvm.io/set/benchmark/
Jump to Line
Something went wrong with that request. Please try again.