Kaydet (Commit) 6b6a1df9 authored tarafından Stefan Krah's avatar Stefan Krah

Restore the benchmark order to avoid waiting for decimal.py if just the

prec=9 test is used.
üst 296b21a4
...@@ -70,11 +70,12 @@ print("\n# ===================================================================== ...@@ -70,11 +70,12 @@ print("\n# =====================================================================
print("# Calculating pi, 10000 iterations") print("# Calculating pi, 10000 iterations")
print("# ======================================================================\n") print("# ======================================================================\n")
to_benchmark = [pi_float, pi_decimal]
if C is not None:
to_benchmark.insert(1, pi_cdecimal)
for prec in [9, 19]: for prec in [9, 19]:
print("\nPrecision: %d decimal digits\n" % prec) 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: for func in to_benchmark:
start = time.time() start = time.time()
if C is not None: if C is not None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment