summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorscoder <none@none>2007-09-28 22:24:43 +0200
committerscoder <none@none>2007-09-28 22:24:43 +0200
commitb3fd483146f6714d4903c17726c5052ab137cc2e (patch)
tree34fc380d67151abc2d0beaf22566fbc352ccf450 /benchmark
parentf52609d18e10cba5ab51d61dba5cf0517892c7ec (diff)
downloadpython-lxml-b3fd483146f6714d4903c17726c5052ab137cc2e.tar.gz
[svn r2936] findall() benchmark with a longer path
--HG-- branch : trunk
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bench_etree.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmark/bench_etree.py b/benchmark/bench_etree.py
index 85203bb2..5803eb97 100644
--- a/benchmark/bench_etree.py
+++ b/benchmark/bench_etree.py
@@ -305,6 +305,9 @@ class BenchMark(benchbase.BenchMarkBase):
def bench_findall_tag(self, root):
root.findall(".//" + self.SEARCH_TAG)
+ def bench_findall_path(self, root):
+ root.findall(".//*[%s]/./%s/./*" % (self.SEARCH_TAG, self.SEARCH_TAG))
+
@onlylib('lxe')
def bench_iterfind(self, root):
list(root.iterfind(".//*"))