Skip to content

Instantly share code, notes, and snippets.

@sgonyea
Created November 12, 2010 06:50
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 sgonyea/673816 to your computer and use it in GitHub Desktop.
Save sgonyea/673816 to your computer and use it in GitHub Desktop.
sgonyea@skg:~/Sites/gsolr$ ruby bench.rb http://localhost:8080/solr "hi"
Rehearsal ------------------------------------
GSolr
---option
:HTTPGET
---value
1
/Users/sgonyea/.rvm/gems/ruby-1.9.2-p0/gems/curl_ffi-0.0.7/lib/bindings.rb:945:in `easy_setopt_long': no implicit conversion from nil to integer (TypeError)
from /Users/sgonyea/.rvm/gems/ruby-1.9.2-p0/gems/curl_ffi-0.0.7/lib/bindings.rb:945:in `easy_setopt'
from /Users/sgonyea/.rvm/gems/ruby-1.9.2-p0/gems/curl_ffi-0.0.7/lib/curl_ffi/easy.rb:56:in `setopt'
from /Users/sgonyea/.rvm/gems/ruby-1.9.2-p0/gems/streamly_ffi-0.2.4/lib/streamly_ffi/base.rb:48:in `set_options'
from /Users/sgonyea/.rvm/gems/ruby-1.9.2-p0/gems/streamly_ffi-0.2.4/lib/streamly_ffi/base.rb:11:in `execute'
from /Users/sgonyea/.rvm/gems/ruby-1.9.2-p0/gems/streamly_ffi-0.2.4/lib/streamly_ffi/connection.rb:47:in `get'
from /Users/sgonyea/Sites/gsolr/lib/gsolr/connection/streamly.rb:22:in `get'
from /Users/sgonyea/Sites/gsolr/lib/gsolr/connection/requestable.rb:39:in `request'
from /Users/sgonyea/Sites/gsolr/lib/gsolr/client.rb:34:in `request'
from bench.rb:31:in `block (3 levels) in <main>'
from bench.rb:28:in `times'
from bench.rb:28:in `block (2 levels) in <main>'
from /Users/sgonyea/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/benchmark.rb:294:in `measure'
from /Users/sgonyea/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/benchmark.rb:262:in `block in bmbm'
from /Users/sgonyea/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/benchmark.rb:260:in `each'
from /Users/sgonyea/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/benchmark.rb:260:in `bmbm'
from bench.rb:24:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment