oga/benchmark/html/lexer/string_average_bench.rb

8 lines
140 B
Ruby

require_relative '../../benchmark_helper'
xml = read_big_xml
measure_average do
Oga::XML::Lexer.new(xml, :html => true).advance { }
end