Skip to content

Instantly share code, notes, and snippets.

@sgonyea
Created November 12, 2010 22:22
Show Gist options
  • Save sgonyea/674805 to your computer and use it in GitHub Desktop.
Save sgonyea/674805 to your computer and use it in GitHub Desktop.
BECAUSE BENCHMARKS HAVE NO BIAS AND TELL THE COMPLETE STORY I CANNOT SEE WHY YOU WOULD BE SKEPTICAL, HELLO INTERNET
sgonyea@skg:~/Sites/gsolr$ ruby bench.rb 10 http://localhost:8080/solr "hi"
Rehearsal ------------------------------------
GSolr
0.120000 0.030000 0.150000 ( 1.463842)
RSolr
0.160000 0.040000 0.200000 ( 1.670438)
--------------------------- total: 0.350000sec
user system total real
GSolr
0.020000 0.010000 0.030000 ( 1.101682)
RSolr
0.090000 0.020000 0.110000 ( 1.721898)
sgonyea@skg:~/Sites/gsolr$ ruby bench.rb 100 http://localhost:8080/solr "hi"
Rehearsal ------------------------------------
GSolr
0.270000 0.140000 0.410000 ( 12.555504)
RSolr
0.980000 0.180000 1.160000 ( 15.968226)
--------------------------- total: 1.570000sec
user system total real
GSolr
0.160000 0.100000 0.260000 ( 10.318017)
RSolr
0.960000 0.180000 1.140000 ( 20.360686)
sgonyea@skg:~/Sites/gsolr$ ruby bench.rb 1000 http://toddler.tomkittens.com:8080/solr "hi"
Rehearsal ------------------------------------
GSolr
1.850000 1.190000 3.040000 ( 97.229927)
RSolr
9.960000 1.760000 11.720000 (188.425233)
-------------------------- total: 14.760000sec
user system total real
GSolr
1.840000 1.260000 3.100000 (104.216447)
RSolr
10.270000 1.870000 12.140000 (219.760722)
sgonyea@skg:~/Sites/gsolr$ ruby bench.rb 50 http://localhost:8080/solr "hi"
Rehearsal ------------------------------------
GSolr
0.190000 0.080000 0.270000 ( 5.727195)
RSolr
0.550000 0.100000 0.650000 ( 6.927646)
--------------------------- total: 0.920000sec
user system total real
GSolr
0.080000 0.060000 0.140000 ( 5.123863)
RSolr
0.480000 0.080000 0.560000 ( 7.591484)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment