Warm up caches in the XPath big XML benchmark
This commit is contained in:
1 parent
b42f9aaf32
commit
e6d2ba4e0e
1 file changed
+3
@@ -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
|
||||
Reference in new issue
Block a user