mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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:
parent
0cbf2c5785
commit
431a76314d
17 changed files with 255 additions and 111 deletions
23
Tools/pybench/Empty.py
Executable file
23
Tools/pybench/Empty.py
Executable 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue