2014-06-12 22:25:39 +00:00
|
|
|
require_relative '../../benchmark_helper'
|
2014-03-23 11:46:04 +00:00
|
|
|
|
2014-05-01 11:08:44 +00:00
|
|
|
html = read_html
|
2014-03-23 11:46:04 +00:00
|
|
|
|
|
|
|
Benchmark.ips do |bench|
|
|
|
|
bench.report 'lex HTML' do
|
2014-09-24 08:07:14 +00:00
|
|
|
Oga::XML::Lexer.new(html, :html => true).advance { }
|
2014-03-23 11:46:04 +00:00
|
|
|
end
|
|
|
|
end
|