"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Cheetah/Tests/Performance.py" between
cheetah3-3.1.0.tar.gz and cheetah3-3.2.0.tar.gz

About: Cheetah3 is a template engine and code generation tool for e.g. for Web development or Java, SQL, LaTeX, form email ... (written in Python).

Performance.py  (cheetah3-3.1.0):Performance.py  (cheetah3-3.2.0)
skipping to change at line 23 skipping to change at line 23
import Cheetah.Template import Cheetah.Template
from Cheetah.compat import unicode from Cheetah.compat import unicode
# This can be turned on with the `--debug` flag when running the test # This can be turned on with the `--debug` flag when running the test
# and will cause the tests to all just dump out how long they took # and will cause the tests to all just dump out how long they took
# insteasd of asserting on duration # insteasd of asserting on duration
DEBUG = False DEBUG = False
# TOLERANCE in Pystones # TOLERANCE in Pystones
kPS = 1000 kPS = 1000
TOLERANCE = 0.5*kPS TOLERANCE = 0.5*kPS # noqa: E226 missing whitespace around operator
class DurationError(AssertionError): class DurationError(AssertionError):
pass pass
_pystone_calibration_mark = None _pystone_calibration_mark = None
def _pystone_calibration(): def _pystone_calibration():
global _pystone_calibration_mark global _pystone_calibration_mark
if not _pystone_calibration_mark: if not _pystone_calibration_mark:
_pystone_calibration_mark = pystone.pystones(loops=pystone.LOOPS) _pystone_calibration_mark = pystone.pystones(loops=pystone.LOOPS)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)