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/kthperm.cpp | |
| parent | 609d5a3bf490cfa151b40e60cb62c8ff751bbe56 (diff) | |
run with sanitizer
Diffstat (limited to 'test/math/kthperm.cpp')
| -rw-r--r-- | test/math/kthperm.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/math/kthperm.cpp b/test/math/kthperm.cpp index 16691b9..1bf8db3 100644 --- a/test/math/kthperm.cpp +++ b/test/math/kthperm.cpp @@ -2,9 +2,9 @@ #include <datastructures/pbds.cpp> #include <math/kthperm.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> expected(n); iota(all(expected), 0); @@ -32,7 +32,8 @@ void performance_test() { } int main() { - stress_test(); - performance_test(); + stress_test(1'000); + if (!sanitize) stress_test(10'000); + if (!sanitize) performance_test(); } |
