oga/benchmark/xml/parser/html.rb

10 lines
165 B
Ruby
Raw Normal View History

require_relative '../../benchmark_helper'
2014-04-10 08:05:04 +00:00
2014-05-01 11:08:44 +00:00
html = read_html
2014-04-10 08:05:04 +00:00
Benchmark.ips do |bench|
bench.report 'parse HTML' do
Oga::HTML::Parser.new(html).parse
end
end