mirror of
https://github.com/python/cpython.git
synced 2025-09-18 22:50:26 +00:00

Action verbose option correctly. Tweak operation counts. Add empty and new instances tests. Enable comparisons across different warp factors. Change version.
23 lines
390 B
Python
Executable file
23 lines
390 B
Python
Executable file
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
|
|
|