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