Skip to content

Instantly share code, notes, and snippets.

@damphyr
Created August 9, 2011 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damphyr/1133784 to your computer and use it in GitHub Desktop.
Save damphyr/1133784 to your computer and use it in GitHub Desktop.
require couchrest benchmark
require "rubygems"
require "benchmark"
puts Benchmark.measure{require "couchrest"}
puts Benchmark.measure{require "couchrest_model"}
meisterbrau:~ riva$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
meisterbrau:~ riva$ ruby benchmark_couchrest.rb
0.440000 0.060000 0.500000 ( 0.547935)
0.460000 0.060000 0.520000 ( 0.627871)
meisterbrau:~ riva$ ruby benchmark_couchrest.rb
0.460000 0.060000 0.520000 ( 0.522878)
3.130000 0.160000 3.290000 ( 3.311734)
d:\tmp>ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]
d:\tmp>ruby benchmark_couchrest.rb
0.250000 0.360000 0.610000 ( 0.608848)
0.672000 0.984000 1.656000 ( 1.654819)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment