Use advance vs lex in the HTML lexer bench.

This commit is contained in:
Yorick Peterse 2014-09-24 10:07:14 +02:00
parent c3a5ce745c
commit d004bc7233
1 changed files with 1 additions and 1 deletions

View File

@ -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