Skip to content

Instantly share code, notes, and snippets.

@wjessop
Created October 24, 2010 17:20
Show Gist options
  • Select an option

  • Save wjessop/643694 to your computer and use it in GitHub Desktop.

Select an option

Save wjessop/643694 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'curb'
require 'benchmark'
loop do
resp = nil
t = Benchmark.measure {
resp = Curl::Easy.perform(ARGV[0])
}
puts "#{resp.response_code} : #{t}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment