oga/benchmark/lexer/big_xml_io_time.rb

8 lines
177 B
Ruby
Raw Normal View History

require_relative '../benchmark_helper'
Benchmark.bmbm(10) do |bench|
bench.report '10MB of XML using IO' do
Oga::XML::Lexer.new(big_xml_file).advance { |tok| }
end
end