2014-06-12 22:25:39 +00:00
|
|
|
require_relative '../../benchmark_helper'
|
2014-04-29 11:05:45 +00:00
|
|
|
|
2014-05-01 11:08:44 +00:00
|
|
|
xml = read_big_xml
|
2014-04-29 11:05:45 +00:00
|
|
|
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
|
2014-04-29 11:05:45 +00:00
|
|
|
parser.parse
|
|
|
|
end
|
|
|
|
end
|