Added average benchmarks for the parser.

This commit is contained in:
Yorick Peterse 2014-05-16 16:38:27 +02:00
parent ad67cd708f
commit 854936f30b
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,7 @@
require_relative '../benchmark_helper'
xml = read_big_xml
measure_average do
Oga::XML::Parser.new(xml).parse
end

View File

@ -0,0 +1,7 @@
require_relative '../benchmark_helper'
xml = read_big_xml
measure_average do
Oga::XML::PullParser.new(xml).parse { }
end