oga/benchmark/xml/lexer/html_bench.rb

10 lines
174 B
Ruby

require_relative '../../benchmark_helper'
html = read_html
Benchmark.ips do |bench|
bench.report 'lex HTML' do
Oga::XML::Lexer.new(html, :html => true).lex
end
end