diff --git a/benchmark/html/lexer/string_average_bench.rb b/benchmark/html/lexer/string_average_bench.rb new file mode 100644 index 0000000..ddb2923 --- /dev/null +++ b/benchmark/html/lexer/string_average_bench.rb @@ -0,0 +1,7 @@ +require_relative '../../benchmark_helper' + +xml = read_big_xml + +measure_average do + Oga::XML::Lexer.new(xml, :html => true).advance { } +end