Do not print to avoid skewing the run timing.

This commit is contained in:
Stephen Chung 2020-05-31 15:57:53 +08:00
parent 697bb39a7f
commit 7fa05f3886
2 changed files with 3 additions and 1 deletions

View File

@ -62,8 +62,10 @@ let a = mat_gen(SIZE);
let b = mat_gen(SIZE); let b = mat_gen(SIZE);
let c = mat_mul(a, b); let c = mat_mul(a, b);
/*
for i in range(0, SIZE) { for i in range(0, SIZE) {
print(c[i]); print(c[i]);
} }
*/
print("Finished. Run time = " + now.elapsed + " seconds."); print("Finished. Run time = " + now.elapsed + " seconds.");

View File

@ -15,7 +15,7 @@ let total_primes_found = 0;
for p in range(2, MAX_NUMBER_TO_CHECK) { for p in range(2, MAX_NUMBER_TO_CHECK) {
if !prime_mask[p] { continue; } if !prime_mask[p] { continue; }
print(p); //print(p);
total_primes_found += 1; total_primes_found += 1;