diff --git a/benchmark/xpath/evaluator/big_xml_average_bench.rb b/benchmark/xpath/evaluator/big_xml_average_bench.rb index eab4203..6704900 100644 --- a/benchmark/xpath/evaluator/big_xml_average_bench.rb +++ b/benchmark/xpath/evaluator/big_xml_average_bench.rb @@ -2,6 +2,9 @@ require_relative '../../benchmark_helper' doc = Oga.parse_xml(big_xml_file) +# Warm up any caches +doc.xpath('descendant-or-self::location') + measure_average do doc.xpath('descendant-or-self::location') end