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.10.0 example/benchmark.rb
primedia-endeca-0.10.1 example/benchmark.rb
primedia-endeca-0.11.0 example/benchmark.rb
primedia-endeca-0.12.0 example/benchmark.rb
primedia-endeca-0.14.0 example/benchmark.rb
primedia-endeca-0.9.0 example/benchmark.rb
primedia-endeca-0.9.1 example/benchmark.rb
primedia-endeca-0.9.10 example/benchmark.rb
primedia-endeca-0.9.11 example/benchmark.rb
primedia-endeca-0.9.12 example/benchmark.rb
primedia-endeca-0.9.13 example/benchmark.rb
primedia-endeca-0.9.14 example/benchmark.rb
primedia-endeca-0.9.15 example/benchmark.rb
primedia-endeca-0.9.16 example/benchmark.rb
primedia-endeca-0.9.17 example/benchmark.rb
primedia-endeca-0.9.18 example/benchmark.rb
primedia-endeca-0.9.19 example/benchmark.rb
primedia-endeca-0.9.2 example/benchmark.rb
primedia-endeca-0.9.20 example/benchmark.rb
primedia-endeca-0.9.21 example/benchmark.rb