summaryrefslogtreecommitdiffstats
path: root/Tools/pybench/Empty.py
diff options
context:
space:
mode:
authorSteve Holden <steve@holdenweb.com>2006-05-26 16:27:59 (GMT)
committerSteve Holden <steve@holdenweb.com>2006-05-26 16:27:59 (GMT)
commit431a76314df929d42192fe4bb087eb97d158de87 (patch)
treed4e329932cd3ae725727346214ad73eb35f069d1 /Tools/pybench/Empty.py
parent0cbf2c57852d64855b88305dfa7d77f84936a674 (diff)
downloadcpython-431a76314df929d42192fe4bb087eb97d158de87.zip
cpython-431a76314df929d42192fe4bb087eb97d158de87.tar.gz
cpython-431a76314df929d42192fe4bb087eb97d158de87.tar.bz2
Add -t option to allow easy test selection.
Action verbose option correctly. Tweak operation counts. Add empty and new instances tests. Enable comparisons across different warp factors. Change version.
Diffstat (limited to 'Tools/pybench/Empty.py')
-rwxr-xr-xTools/pybench/Empty.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/Tools/pybench/Empty.py b/Tools/pybench/Empty.py
new file mode 100755
index 0000000..3c54851
--- /dev/null
+++ b/Tools/pybench/Empty.py
@@ -0,0 +1,23 @@
+from pybench import Test
+
+class EmptyTest(Test):
+ """This is just here as a potential measure of repeatability."""
+
+ version = 0.3
+ operations = 1
+ rounds = 60000
+
+ def test(self):
+
+ l = []
+ for i in xrange(self.rounds):
+ pass
+
+
+ def calibrate(self):
+
+ l = []
+
+ for i in xrange(self.rounds):
+ pass
+