merge heads

This commit is contained in:
Benjamin Peterson 2012-09-25 11:23:09 -04:00
commit 8b7ebafe65
1 changed files with 4 additions and 3 deletions

View File

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