From 602e2318408f85540df02b3fc48e2ef903d887fd Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Tue, 31 Mar 2015 22:17:48 +0200 Subject: [PATCH] XPath benchmark for querying large XML documents --- benchmark/xpath/evaluator/big_xml_average_bench.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 benchmark/xpath/evaluator/big_xml_average_bench.rb diff --git a/benchmark/xpath/evaluator/big_xml_average_bench.rb b/benchmark/xpath/evaluator/big_xml_average_bench.rb new file mode 100644 index 0000000..eab4203 --- /dev/null +++ b/benchmark/xpath/evaluator/big_xml_average_bench.rb @@ -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