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