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

prec=9 test is used.
This commit is contained in:
Stefan Krah 2012-09-25 17:07:55 +02:00
parent 296b21a479
commit 6b6a1df996
1 changed files with 4 additions and 3 deletions

View File

@ -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: