Sha256: ce878aac27e2530bb2dcacb5e5adbba63517b9eb2a3a49b83cd8df8b6ef15914

Contents?: true

Size: 418 Bytes

Versions: 52

Compression:

Stored size: 418 Bytes

Contents

require 'benchmark'

$:.unshift(File.expand_path(File.dirname(__FILE__)))
require 'lib/endeca'
require 'listing'

RUNS = 10
Benchmark.bmbm do |results|
  results.report('Full Request') {RUNS.times{Listing.all}}
  results.report('Parse JSON') {RUNS.times{Endeca::Request.perform(Listing.get_path,'')}}
  results.report('Get Net Response') {RUNS.times{Endeca::Request.new(Listing.get_path,'').send(:get_response)}}
end

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
primedia-endeca-0.9.22 example/benchmark.rb
primedia-endeca-0.9.23 example/benchmark.rb
primedia-endeca-0.9.24 example/benchmark.rb
primedia-endeca-0.9.25 example/benchmark.rb
primedia-endeca-0.9.26 example/benchmark.rb
primedia-endeca-0.9.3 example/benchmark.rb
primedia-endeca-0.9.4 example/benchmark.rb
primedia-endeca-0.9.5 example/benchmark.rb
primedia-endeca-0.9.6 example/benchmark.rb
primedia-endeca-0.9.7 example/benchmark.rb
primedia-endeca-0.9.8 example/benchmark.rb
primedia-endeca-0.9.9 example/benchmark.rb
primedia-endeca-1.0.0 example/benchmark.rb
primedia-endeca-1.1.0 example/benchmark.rb
primedia-endeca-1.2.0 example/benchmark.rb
primedia-endeca-1.3.0 example/benchmark.rb
primedia-endeca-1.3.1 example/benchmark.rb
primedia-endeca-1.3.2 example/benchmark.rb
primedia-endeca-1.3.3 example/benchmark.rb
primedia-endeca-1.3.4 example/benchmark.rb