Sha256: cffc10ac6bcb755da56a102ec143847bd38d7c89cae04c422d20ec5270971b1a
Contents?: true
Size: 534 Bytes
Versions: 10
Compression:
Stored size: 534 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, :SoapResponseHpricot].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 # no-op end end end
Version data entries
10 entries across 10 versions & 5 rubygems