Sha256: 546761f90968e2aa65c15cc4f492e1813e04263e6c5b2bc12bf7255309fb5142
Contents?: true
Size: 355 Bytes
Versions: 5
Compression:
Stored size: 355 Bytes
Contents
$:.push File.expand_path("../../lib", __FILE__) require "nori" require "benchmark" Benchmark.bm 30 do |x| num = 500 xml = File.read File.expand_path("../soap_response.xml", __FILE__) x.report "rexml parser" do num.times { Nori.parse xml, :rexml } end x.report "nokogiri parser" do num.times { Nori.parse xml, :nokogiri } end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
nori-2.2.0 | benchmark/benchmark.rb |
nori-2.1.0 | benchmark/benchmark.rb |
nori-2.0.4 | benchmark/benchmark.rb |
nori-2.0.3 | benchmark/benchmark.rb |
nori-2.0.0 | benchmark/benchmark.rb |