Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 1.3.0RC2
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.38 kb
require 'benchmark'
TIMES = (ARGV[0] || 3).to_i
Benchmark.bm(30) {|bm|
TIMES.times {
bm.report("require 'time'") { 10_000.times { require 'time' } }
}
}
puts "Now with rubygems and activerecord"
require 'rubygems'
gem 'activerecord'
require 'activerecord'
Benchmark.bm(30) {|bm|
TIMES.times {
bm.report("require 'time'") { 10_000.times { require 'time' } }
}
}
Jump to Line
Something went wrong with that request. Please try again.