summaryrefslogtreecommitdiff
path: root/test/graph/connect.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2025-11-19 02:20:56 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2025-11-19 02:20:56 +0100
commit17232918b51d27500af905dc3d3d82cd43d6ddf5 (patch)
tree1c5d52f03eead415cc53317008032fe84238c187 /test/graph/connect.cpp
parentbf4eda36d4c13be468236bf33baa2574e8692ca7 (diff)
parentcdeded176c18240579168ee8461c5101abb47e78 (diff)
merge mzuenni
Diffstat (limited to 'test/graph/connect.cpp')
-rw-r--r--test/graph/connect.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/graph/connect.cpp b/test/graph/connect.cpp
index 96dc4be..ef087e3 100644
--- a/test/graph/connect.cpp
+++ b/test/graph/connect.cpp
@@ -45,9 +45,9 @@ struct Naive {
}
};
-void stress_test() {
+void stress_test(int lim) {
ll queries = 0;
- for (int tries = 0; tries < 2'000; tries++) {
+ for (int tries = 0; tries < lim; tries++) {
int n = Random::integer<int>(2, 30);
int m = Random::integer<int>(30, 300);
@@ -135,6 +135,6 @@ void performance_test() {
}
int main() {
- stress_test();
- performance_test();
+ stress_test(sanitize ? 1'000 : 2'000);
+ if (!sanitize) performance_test();
}