Created
August 9, 2011 11:13
-
-
Save damphyr/1133784 to your computer and use it in GitHub Desktop.
require couchrest benchmark
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "benchmark" | |
puts Benchmark.measure{require "couchrest"} | |
puts Benchmark.measure{require "couchrest_model"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meisterbrau:~ riva$ ruby benchmark_couchrest.rb | |
0.460000 0.060000 0.520000 ( 0.522878) | |
3.130000 0.160000 3.290000 ( 3.311734) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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