oga/benchmark/html/lexer/lexer_bench.rb

10 lines
182 B
Ruby
Raw Normal View History

require_relative '../../benchmark_helper'
2014-05-01 11:08:44 +00:00
html = read_html
Benchmark.ips do |bench|
bench.report 'lex HTML' do
Oga::XML::Lexer.new(html, :html => true).advance { }
end
end