Created
January 10, 2009 02:08
-
-
Save mattetti/45350 to your computer and use it in GitHub Desktop.
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
# 1.8.6 patch level 114 apple | |
# using curb | |
$ ruby1.8 script/benchmarks.rb | |
user system total real | |
search 0.020000 0.000000 0.020000 ( 0.168752) | |
unthreaded_search 0.000000 0.000000 0.000000 ( 0.096256) | |
search :size => 30 0.000000 0.010000 0.010000 ( 0.555943) | |
unthreaded_search :size => 30 0.000000 0.000000 0.000000 ( 0.518158) | |
search :size => 80 0.010000 0.010000 0.020000 ( 1.320430) | |
unthreaded_search :size => 80 0.010000 0.000000 0.010000 ( 1.220621) | |
search :size => 150 0.010000 0.010000 0.020000 ( 1.716629) | |
unthreaded_search :size => 150 0.010000 0.020000 0.030000 ( 1.742816) | |
search :size => 200 0.010000 0.010000 0.020000 ( 2.439195) | |
unthreaded_search :size => 200 0.030000 0.020000 0.050000 ( 3.265032) | |
# Ruby 1.8.6 patch level 114 Apple | |
# using net::http | |
$ ruby script/benchmarks.rb | |
user system total real | |
search 0.010000 0.000000 0.010000 ( 0.150941) | |
unthreaded_search 0.000000 0.000000 0.000000 ( 0.130807) | |
search :size => 30 0.010000 0.010000 0.020000 ( 0.655563) | |
unthreaded_search :size => 30 0.010000 0.010000 0.020000 ( 0.663231) | |
search :size => 80 0.020000 0.010000 0.030000 ( 1.239980) | |
unthreaded_search :size => 80 0.030000 0.020000 0.050000 ( 1.359608) | |
search :size => 150 0.030000 0.020000 0.050000 ( 3.005778) | |
unthreaded_search :size => 150 0.060000 0.020000 0.080000 ( 2.514215) | |
search :size => 200 0.040000 0.030000 0.070000 ( 2.268804) | |
unthreaded_search :size => 200 0.040000 0.020000 0.060000 ( 2.311036) |
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
# 1.9.1 RC1 using curb | |
$ ruby1.9 script/benchmarks.rb | |
user system total real | |
search 0.000000 0.000000 0.000000 ( 0.076937) | |
unthreaded_search 0.010000 0.000000 0.010000 ( 0.097843) | |
search :size => 30 0.000000 0.010000 0.010000 ( 0.399256) | |
unthreaded_search :size => 30 0.000000 0.000000 0.000000 ( 0.528316) | |
search :size => 80 0.010000 0.010000 0.020000 ( 0.955995) | |
unthreaded_search :size => 80 0.010000 0.000000 0.010000 ( 1.035777) | |
search :size => 150 0.010000 0.020000 0.030000 ( 1.716100) | |
unthreaded_search :size => 150 0.010000 0.010000 0.020000 ( 1.983816) | |
search :size => 200 0.020000 0.020000 0.040000 ( 2.662661) | |
unthreaded_search :size => 200 0.020000 0.020000 0.040000 ( 4.428007) |
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
# Ruby 1.9.1 RC1 using net::http | |
$ ruby1.9 script/benchmarks.rb | |
user system total real | |
search 0.000000 0.000000 0.000000 ( 0.163854) | |
unthreaded_search 0.010000 0.000000 0.010000 ( 0.092481) | |
search :size => 30 0.000000 0.010000 0.010000 ( 0.631216) | |
unthreaded_search :size => 30 0.010000 0.000000 0.010000 ( 0.788742) | |
search :size => 80 0.020000 0.020000 0.040000 ( 1.340971) | |
unthreaded_search :size => 80 0.020000 0.010000 0.030000 ( 1.340271) | |
search :size => 150 0.030000 0.020000 0.050000 ( 1.937945) | |
unthreaded_search :size => 150 0.020000 0.020000 0.040000 ( 1.908065) | |
search :size => 200 0.040000 0.020000 0.060000 ( 2.402712) | |
unthreaded_search :size => 200 0.030000 0.030000 0.060000 ( 3.118825) |
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
# jruby 1.6.1 using net::http | |
$ jruby1.6.1 script/benchmarks.rb | |
user system total real | |
search 0.303000 0.000000 0.303000 ( 0.302815) | |
unthreaded_search 0.118000 0.000000 0.118000 ( 0.117681) | |
search :size => 30 1.363000 0.000000 1.363000 ( 1.363066) | |
unthreaded_search :size => 30 0.804000 0.000000 0.804000 ( 0.804177) | |
search :size => 80 1.547000 0.000000 1.547000 ( 1.547394) | |
unthreaded_search :size => 80 1.372000 0.000000 1.372000 ( 1.372004) | |
search :size => 150 2.163000 0.000000 2.163000 ( 2.162188) | |
unthreaded_search :size => 150 2.406000 0.000000 2.406000 ( 2.406027) | |
search :size => 200 2.414000 0.000000 2.414000 ( 2.414719) | |
unthreaded_search :size => 200 2.853000 0.000000 2.853000 ( 2.853580) |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment