From 7fa05f3886eb842de7e569ea885a6413483d477b Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sun, 31 May 2020 15:57:53 +0800 Subject: [PATCH] Do not print to avoid skewing the run timing. --- scripts/mat_mul.rhai | 2 ++ scripts/primes.rhai | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/mat_mul.rhai b/scripts/mat_mul.rhai index b93a1a5e..54bca636 100644 --- a/scripts/mat_mul.rhai +++ b/scripts/mat_mul.rhai @@ -62,8 +62,10 @@ let a = mat_gen(SIZE); let b = mat_gen(SIZE); let c = mat_mul(a, b); +/* for i in range(0, SIZE) { print(c[i]); } +*/ print("Finished. Run time = " + now.elapsed + " seconds."); diff --git a/scripts/primes.rhai b/scripts/primes.rhai index 7f66976f..fc4acc7e 100644 --- a/scripts/primes.rhai +++ b/scripts/primes.rhai @@ -15,7 +15,7 @@ let total_primes_found = 0; for p in range(2, MAX_NUMBER_TO_CHECK) { if !prime_mask[p] { continue; } - print(p); + //print(p); total_primes_found += 1;