oga/benchmark/xml/parser/big_xml_time.rb

11 lines
190 B
Ruby
Raw Normal View History

require_relative '../../benchmark_helper'
2014-05-01 11:08:44 +00:00
xml = read_big_xml
parser = Oga::XML::Parser.new(xml)
Benchmark.bmbm(10) do |bench|
2014-04-29 12:24:33 +00:00
bench.report '10MB of XML' do
parser.parse
end
end