public
Last active

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
# 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)
gistfile2.txt
1 2 3 4 5 6 7 8 9 10 11 12 13
# 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)
gistfile3.txt
1 2 3 4 5 6 7 8 9 10 11 12 13
# 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)
gistfile4.txt
1 2 3 4 5 6 7 8 9 10 11 12 13
# 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)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.