diff options
| author | mzuenni <michi.zuendorf@gmail.com> | 2025-07-10 17:40:18 +0200 |
|---|---|---|
| committer | mzuenni <michi.zuendorf@gmail.com> | 2025-07-10 17:40:18 +0200 |
| commit | 630a5bdf06d59b8340fb4bfc0e692cbcf094026a (patch) | |
| tree | adee732c8d2cdcb46e5f400611c370b4c2ec1947 /test/math/permIndex.cpp | |
| parent | 609d5a3bf490cfa151b40e60cb62c8ff751bbe56 (diff) | |
run with sanitizer
Diffstat (limited to 'test/math/permIndex.cpp')
| -rw-r--r-- | test/math/permIndex.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/math/permIndex.cpp b/test/math/permIndex.cpp index 61d34c8..8dcfd6b 100644 --- a/test/math/permIndex.cpp +++ b/test/math/permIndex.cpp @@ -2,9 +2,9 @@ #include <datastructures/pbds.cpp> #include <math/permIndex.cpp> -void stress_test() { +void stress_test(int LIM) { ll queries = 0; - for (ll i = 0; i < 10'000; i++) { + for (int i = 0; i < LIM; i++) { int n = Random::integer<int>(1, 100); vector<ll> cur(n); iota(all(cur), 0); @@ -33,7 +33,8 @@ void performance_test() { } int main() { - stress_test(); - performance_test(); + stress_test(1'000); + if (!sanitize) stress_test(10'000); + if (!sanitize) performance_test(); } |
