Fixed the big XML lexer benchmark.
This commit is contained in:
parent
83f6d5437e
commit
2f36692abe
|
@ -6,6 +6,6 @@ lexer = Oga::XML::Lexer.new(xml)
|
||||||
|
|
||||||
Benchmark.bmbm(10) do |bench|
|
Benchmark.bmbm(10) do |bench|
|
||||||
bench.report '10MB of XML' do
|
bench.report '10MB of XML' do
|
||||||
lexer.advance { |tok| }
|
Oga::XML::Lexer.new(xml).advance { |tok| }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue