oga/benchmark/xml/lexer/html_time.rb

10 lines
179 B
Ruby
Raw Normal View History

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