summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-09-25 15:23:09 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-09-25 15:23:09 (GMT)
commit8b7ebafe6597b130463a684795109a6ef38e3eb6 (patch)
tree9977808095822f6fd7805999357b95577a0ddae5
parentfeaa54f537cf36ca47cefd934a568ff92fe3aa43 (diff)
parentee830e06ff09c281c5bb78d3744e95dfb2c6ce6c (diff)
downloadcpython-8b7ebafe6597b130463a684795109a6ef38e3eb6.zip
cpython-8b7ebafe6597b130463a684795109a6ef38e3eb6.tar.gz
cpython-8b7ebafe6597b130463a684795109a6ef38e3eb6.tar.bz2
merge heads
-rw-r--r--Modules/_decimal/tests/bench.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/_decimal/tests/bench.py b/Modules/_decimal/tests/bench.py
index 23b80b4..7ab6b44 100644
--- a/Modules/_decimal/tests/bench.py
+++ b/Modules/_decimal/tests/bench.py
@@ -70,11 +70,12 @@ print("\n# =====================================================================
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: