Sha256: 2eedb50008e353e5dd34ed638e55fb7e63c6c9fc4692f341d2d6c394b0c4eab8

Contents?: true

Size: 484 Bytes

Versions: 27

Compression:

Stored size: 484 Bytes

Contents

require File.dirname(__FILE__) + '/../lib/typhoeus.rb'
require 'rubygems'
require 'ruby-prof'

calls = 20
@klass = Class.new do
  include Typhoeus
end

Typhoeus.init_easy_objects

RubyProf.start

responses = []
calls.times do |i|
  responses << @klass.get("http://127.0.0.1:3000/#{i}")
end

responses.each {|r| }#raise unless r.response_body == "whatever"}

result = RubyProf.stop

 # Print a flat profile to text
 printer = RubyProf::FlatPrinter.new(result)
 printer.print(STDOUT, 0)

Version data entries

27 entries across 27 versions & 7 rubygems

Version Path
gravis-typhoeus-0.1.32 benchmarks/profile.rb
gravis-typhoeus-0.1.31 benchmarks/profile.rb
gravis-typhoeus-0.1.30 benchmarks/profile.rb
gravis-typhoeus-0.1.29 benchmarks/profile.rb
typhoeus-0.1.27 benchmarks/profile.rb
typhoeus-0.1.26 benchmarks/profile.rb
typhoeus-0.1.25 benchmarks/profile.rb