Use advance vs lex in the HTML lexer bench.
This commit is contained in:
parent
c3a5ce745c
commit
d004bc7233
|
@ -4,6 +4,6 @@ html = read_html
|
|||
|
||||
Benchmark.ips do |bench|
|
||||
bench.report 'lex HTML' do
|
||||
Oga::XML::Lexer.new(html, :html => true).lex
|
||||
Oga::XML::Lexer.new(html, :html => true).advance { }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue