We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 296b21a commit 6b6a1dfCopy full SHA for 6b6a1df
1 file changed
Modules/_decimal/tests/bench.py
@@ -70,11 +70,12 @@ def factorial(n, m):
70
print("# Calculating pi, 10000 iterations")
71
print("# ======================================================================\n")
72
73
+to_benchmark = [pi_float, pi_decimal]
74
+if C is not None:
75
+ to_benchmark.insert(1, pi_cdecimal)
76
+
77
for prec in [9, 19]:
78
print("\nPrecision: %d decimal digits\n" % prec)
- to_benchmark = [pi_float, pi_decimal]
- if C is not None:
- to_benchmark.append(pi_cdecimal)
79
for func in to_benchmark:
80
start = time.time()
81
if C is not None:
0 commit comments