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.
This commit is contained in:
Steve Holden 2006-05-26 16:27:59 +00:00
parent 0cbf2c5785
commit 431a76314d
17 changed files with 255 additions and 111 deletions

23
Tools/pybench/Empty.py Executable file
View file

@ -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