diff options
author | scoder <none@none> | 2007-09-28 22:24:43 +0200 |
---|---|---|
committer | scoder <none@none> | 2007-09-28 22:24:43 +0200 |
commit | b3fd483146f6714d4903c17726c5052ab137cc2e (patch) | |
tree | 34fc380d67151abc2d0beaf22566fbc352ccf450 | |
parent | f52609d18e10cba5ab51d61dba5cf0517892c7ec (diff) | |
download | python-lxml-b3fd483146f6714d4903c17726c5052ab137cc2e.tar.gz |
[svn r2936] findall() benchmark with a longer path
--HG--
branch : trunk
-rw-r--r-- | benchmark/bench_etree.py | 3 |
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(".//*")) |