summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormzuenni <michi.zuendorf@gmail.com>2025-09-22 19:32:21 +0200
committermzuenni <michi.zuendorf@gmail.com>2025-09-22 19:32:21 +0200
commitcdeded176c18240579168ee8461c5101abb47e78 (patch)
treee900f80e4ee0254c46fa9fd1cef476fd87bc920b /test
parent36ed3271d766dea4498170872079a5e8c2d82698 (diff)
reduce bounds for test
Diffstat (limited to 'test')
-rw-r--r--test/graph/connect.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/graph/connect.cpp b/test/graph/connect.cpp
index 9580a4b..8114339 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();
+ stress_test(sanitize ? 1'000 : 2'000);
if (!sanitize) performance_test();
}