Basic benchmark for the XPath parser.

This commit is contained in:
Yorick Peterse 2014-06-23 20:50:07 +02:00
parent 5259c31b36
commit 9bda9dac19
1 changed files with 9 additions and 0 deletions

View File

@ -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