Skip to content

Instantly share code, notes, and snippets.

View danmayer's full-sized avatar

Dan Mayer danmayer

View GitHub Profile
#!/usr/bin/env ruby
require 'rest_client'
require 'net/http'
require 'benchmark'
URL = 'https://www.livingsocial.com/deals/753290-tacos-and-margaritas-for-two-or-four'
time = Benchmark.realtime do
(1..100).each {
url = URI.parse(URL)
req = Net::HTTP::Get.new(url.path)