Basic benchmark for the XPath parser.
This commit is contained in:
parent
5259c31b36
commit
9bda9dac19
|
@ -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
|
Loading…
Reference in New Issue