From d004bc723342b41adc1bd7a2c1d1a10d567a36ba Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Wed, 24 Sep 2014 10:07:14 +0200 Subject: [PATCH] Use advance vs lex in the HTML lexer bench. --- benchmark/xml/lexer/html_bench.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/xml/lexer/html_bench.rb b/benchmark/xml/lexer/html_bench.rb index e90d19e..f97f3a1 100644 --- a/benchmark/xml/lexer/html_bench.rb +++ b/benchmark/xml/lexer/html_bench.rb @@ -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