summaryrefslogtreecommitdiff
path: root/test/math/linearSieve.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/math/linearSieve.cpp')
-rw-r--r--test/math/linearSieve.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/math/linearSieve.cpp b/test/math/linearSieve.cpp
index 527e729..1a5286f 100644
--- a/test/math/linearSieve.cpp
+++ b/test/math/linearSieve.cpp
@@ -59,8 +59,10 @@ void performance_test() {
sieve();
hash_t hash = ssize(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() {