diff --git a/benchmark/xpath/parser/parser_bench.rb b/benchmark/xpath/parser/parser_bench.rb new file mode 100644 index 0000000..8fa3090 --- /dev/null +++ b/benchmark/xpath/parser/parser_bench.rb @@ -0,0 +1,9 @@ +require_relative '../../benchmark_helper' + +xpath = '/wikimedia/projects/project[@name="Wikipedia"]/editions/edition/text()' + +Benchmark.ips do |bench| + bench.report 'Wikipedia example' do + Oga::XPath::Parser.new(xpath).parse + end +end