summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2013-04-05 21:16:03 +0200
committerStefan Behnel <stefan_ml@behnel.de>2013-04-05 21:16:03 +0200
commitb88633cd4c210a329a549b3b07cb6dec09c45844 (patch)
tree06f5e3758a1f4b34d3e00059ca0fe031134d5d56
parent2b24782f836e9444918f1491dfcf1ae38d41ae7b (diff)
downloadpython-lxml-b88633cd4c210a329a549b3b07cb6dec09c45844.tar.gz
rename StringIO benchmarks to BytesIO (which they now use)
-rw-r--r--benchmark/bench_etree.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/benchmark/bench_etree.py b/benchmark/bench_etree.py
index 308ed2c3..2cd2f569 100644
--- a/benchmark/bench_etree.py
+++ b/benchmark/bench_etree.py
@@ -89,7 +89,7 @@ class BenchMark(benchbase.TreeBenchMark):
@nochange
@with_attributes(True, False)
@with_text(text=True, utext=True)
- def bench_write_utf8_parse_stringIO(self, root):
+ def bench_write_utf8_parse_bytesIO(self, root):
f = BytesIO()
self.etree.ElementTree(root).write(f, encoding='UTF-8')
f.seek(0)
@@ -98,7 +98,7 @@ class BenchMark(benchbase.TreeBenchMark):
@with_attributes(True, False)
@with_text(text=True, utext=True)
@serialized
- def bench_parse_stringIO(self, root_xml):
+ def bench_parse_bytesIO(self, root_xml):
f = BytesIO(root_xml)
self.etree.parse(f)
@@ -111,7 +111,7 @@ class BenchMark(benchbase.TreeBenchMark):
@with_attributes(True, False)
@with_text(text=True, utext=True)
@serialized
- def bench_iterparse_stringIO(self, root_xml):
+ def bench_iterparse_bytesIO(self, root_xml):
f = BytesIO(root_xml)
for event, element in self.etree.iterparse(f):
pass
@@ -119,7 +119,7 @@ class BenchMark(benchbase.TreeBenchMark):
@with_attributes(True, False)
@with_text(text=True, utext=True)
@serialized
- def bench_iterparse_stringIO_clear(self, root_xml):
+ def bench_iterparse_bytesIO_clear(self, root_xml):
f = BytesIO(root_xml)
for event, element in self.etree.iterparse(f):
element.clear()