[Python-checkins] cpython (merge default -> default): merge heads
benjamin.peterson
python-checkins at python.org
Tue Sep 25 17:23:19 CEST 2012
http://hg.python.org/cpython/rev/8f793481adf5
changeset: 79174:8f793481adf5
parent: 79173:4de5e4ec3cff
parent: 79172:9b83fac9a0cb
user: Benjamin Peterson <benjamin at python.org>
date: Tue Sep 25 11:23:09 2012 -0400
summary:
merge heads
files:
Modules/_decimal/tests/bench.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/Modules/_decimal/tests/bench.py b/Modules/_decimal/tests/bench.py
--- a/Modules/_decimal/tests/bench.py
+++ b/Modules/_decimal/tests/bench.py
@@ -70,11 +70,12 @@
print("# Calculating pi, 10000 iterations")
print("# ======================================================================\n")
+to_benchmark = [pi_float, pi_decimal]
+if C is not None:
+ to_benchmark.insert(1, pi_cdecimal)
+
for prec in [9, 19]:
print("\nPrecision: %d decimal digits\n" % prec)
- to_benchmark = [pi_float, pi_decimal]
- if C is not None:
- to_benchmark.append(pi_cdecimal)
for func in to_benchmark:
start = time.time()
if C is not None:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list