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
abhay-typhoeus-0.0.22 benchmarks/profile.rb
xenda-typhoeus-0.2.4 benchmarks/profile.rb
typhoeus-0.2.4 benchmarks/profile.rb
typhoeus-0.2.3 benchmarks/profile.rb
arachni-typhoeus-0.2.0.2 benchmarks/profile.rb
typhoeus-0.2.2 benchmarks/profile.rb
arachni-typhoeus-0.2.0.1 benchmarks/profile.rb
arachni-typhoeus-0.2.0 benchmarks/profile.rb
typhoeus-0.2.1 benchmarks/profile.rb
typhoeus-0.2.0 benchmarks/profile.rb
fblee-typhoeus-0.1.31 benchmarks/profile.rb
tech-angels-typhoeus-0.1.36 benchmarks/profile.rb
typhoeus-0.1.31 benchmarks/profile.rb
typhoeus-0.1.30 benchmarks/profile.rb
typhoeus-0.1.29 benchmarks/profile.rb
gravis-typhoeus-0.1.36 benchmarks/profile.rb
typhoeus-0.1.28 benchmarks/profile.rb
gravis-typhoeus-0.1.35 benchmarks/profile.rb
gravis-typhoeus-0.1.34 benchmarks/profile.rb
gravis-typhoeus-0.1.33 benchmarks/profile.rb