Warm up caches in the XPath big XML benchmark
This commit is contained in:
parent
b42f9aaf32
commit
e6d2ba4e0e
|
@ -2,6 +2,9 @@ require_relative '../../benchmark_helper'
|
||||||
|
|
||||||
doc = Oga.parse_xml(big_xml_file)
|
doc = Oga.parse_xml(big_xml_file)
|
||||||
|
|
||||||
|
# Warm up any caches
|
||||||
|
doc.xpath('descendant-or-self::location')
|
||||||
|
|
||||||
measure_average do
|
measure_average do
|
||||||
doc.xpath('descendant-or-self::location')
|
doc.xpath('descendant-or-self::location')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue