summaryrefslogtreecommitdiff
path: root/test/math/primeSieve.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/math/primeSieve.cpp')
-rw-r--r--test/math/primeSieve.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/math/primeSieve.cpp b/test/math/primeSieve.cpp
index 78a50d2..a675f6a 100644
--- a/test/math/primeSieve.cpp
+++ b/test/math/primeSieve.cpp
@@ -36,8 +36,10 @@ void performance_test() {
primeSieve();
hash_t hash = sz(primes);
t.stop();
- if (t.time > 500) cerr << "too slow: " << t.time << FAIL;
- cerr << "tested performance: " << t.time << "ms (hash: " << hash << ")" << endl;
+ if (!sanitize) {
+ if (t.time > 500) cerr << "too slow: " << t.time << FAIL;
+ cerr << "tested performance: " << t.time << "ms (hash: " << hash << ")" << endl;
+ }
}
int main() {