Sha256: b8c34aff76c029afb3e81a4e3d397d7aa891c9d255589210ac0cc7781222a128
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
require 'rforce' desc 'Perform a crude comparison of the various response parsers' task :timing do fname = File.join(File.dirname(__FILE__), '../spec/soap-response.xml') contents = File.open(fname) {|f| f.read} [:SoapResponseRexml, :SoapResponseExpat, :SoapResponseNokogiri].each do |name| begin klass = RForce.const_get name started_at = Time.now klass.new(contents).parse elapsed = Time.now - started_at puts "#{klass}: #{elapsed}" rescue NameError puts $! # no-op end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rforce-0.13 | tasks/timing.rake |
rforce-0.12 | tasks/timing.rake |