[Python-checkins] r46930 - python/trunk/Tools/pybench/Calls.py python/trunk/Tools/pybench/clockres.py python/trunk/Tools/pybench/pybench.py
marc-andre.lemburg
python-checkins at python.org
Tue Jun 13 21:20:07 CEST 2006
Author: marc-andre.lemburg
Date: Tue Jun 13 21:20:07 2006
New Revision: 46930
Modified:
python/trunk/Tools/pybench/Calls.py
python/trunk/Tools/pybench/clockres.py
python/trunk/Tools/pybench/pybench.py
Log:
Whitespace normalization.
Modified: python/trunk/Tools/pybench/Calls.py
==============================================================================
--- python/trunk/Tools/pybench/Calls.py (original)
+++ python/trunk/Tools/pybench/Calls.py Tue Jun 13 21:20:07 2006
@@ -500,5 +500,3 @@
timeit.main(['-s', setup,
test])
-
-
Modified: python/trunk/Tools/pybench/clockres.py
==============================================================================
--- python/trunk/Tools/pybench/clockres.py (original)
+++ python/trunk/Tools/pybench/clockres.py Tue Jun 13 21:20:07 2006
@@ -20,7 +20,7 @@
while 1:
now = wallclock()
if now >= stop:
- break
+ break
for i in spin_loops:
d[timer()] = 1
values = d.keys()
@@ -33,7 +33,7 @@
return min_diff
if __name__ == '__main__':
- print 'Clock resolution of various timer implementations:'
+ print 'Clock resolution of various timer implementations:'
print 'time.clock: %10.3fus' % (clockres(time.clock) * 1e6)
print 'time.time: %10.3fus' % (clockres(time.time) * 1e6)
try:
@@ -41,4 +41,3 @@
print 'systimes.processtime: %10.3fus' % (clockres(systimes.processtime) * 1e6)
except ImportError:
pass
-
Modified: python/trunk/Tools/pybench/pybench.py
==============================================================================
--- python/trunk/Tools/pybench/pybench.py (original)
+++ python/trunk/Tools/pybench/pybench.py Tue Jun 13 21:20:07 2006
@@ -418,7 +418,7 @@
def __init__(self, name, verbose=None, timer=None, warp=None,
calibration_runs=None):
-
+
if name:
self.name = name
else:
@@ -438,7 +438,7 @@
if _debug:
print 'Getting machine details...'
self.machine_details = get_machine_details()
-
+
# Make .version an instance attribute to have it saved in the
# Benchmark pickle
self.version = self.version
More information about the Python-checkins
mailing list