Added average benchmarks for the parser.
This commit is contained in:
parent
ad67cd708f
commit
854936f30b
|
@ -0,0 +1,7 @@
|
|||
require_relative '../benchmark_helper'
|
||||
|
||||
xml = read_big_xml
|
||||
|
||||
measure_average do
|
||||
Oga::XML::Parser.new(xml).parse
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
require_relative '../benchmark_helper'
|
||||
|
||||
xml = read_big_xml
|
||||
|
||||
measure_average do
|
||||
Oga::XML::PullParser.new(xml).parse { }
|
||||
end
|
Loading…
Reference in New Issue