XPath benchmark for querying large XML documents

This commit is contained in:
Yorick Peterse 2015-03-31 22:17:48 +02:00
parent 3176459307
commit 602e231840
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
require_relative '../../benchmark_helper'
doc = Oga.parse_xml(big_xml_file)
measure_average do
doc.xpath('descendant-or-self::location')
end