summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_decimal')
-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: