From 04f431eee7b5b493eed8b95497bb4ea7addfbbbf Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Sat, 23 May 2015 06:54:15 +0200 Subject: [PATCH] Add HTML lexer large input timing benchmark --- benchmark/html/lexer/string_average_bench.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 benchmark/html/lexer/string_average_bench.rb 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