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.bmbm(20) do |bench|
|
|
|
|
bench.report 'lex HTML' do
|
2014-04-10 07:55:33 +00:00
|
|
|
Oga::XML::Lexer.new(html, :html => true).lex
|
2014-03-23 11:46:04 +00:00
|
|
|
end
|
|
|
|
end
|