Big refactor to become more PEP8 compliant.
Mostly focused on docstrings (''' → """), indentation, empty lines,
and superfluous parenthesis.
diff --git a/create_timing_table.py b/create_timing_table.py
index b6f8884..48cd1ff 100755
--- a/create_timing_table.py
+++ b/create_timing_table.py
@@ -21,8 +21,8 @@
poolsize = 8
accurate = True
-def run_speed_test(bitsize):
+def run_speed_test(bitsize):
iterations = 0
start = end = time.time()
@@ -35,10 +35,9 @@
duration = end - start
dur_per_call = duration / iterations
- print '%5i bit: %9.3f sec. (%i iterations over %.1f seconds)' % (bitsize,
- dur_per_call, iterations, duration)
+ print('%5i bit: %9.3f sec. (%i iterations over %.1f seconds)' %
+ (bitsize, dur_per_call, iterations, duration))
+
for bitsize in (128, 256, 384, 512, 1024, 2048, 3072, 4096):
run_speed_test(bitsize)
-
-