From 630a5bdf06d59b8340fb4bfc0e692cbcf094026a Mon Sep 17 00:00:00 2001 From: mzuenni Date: Thu, 10 Jul 2025 17:40:18 +0200 Subject: run with sanitizer --- test/graph/connect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/graph/connect.cpp') diff --git a/test/graph/connect.cpp b/test/graph/connect.cpp index bba8104..9580a4b 100644 --- a/test/graph/connect.cpp +++ b/test/graph/connect.cpp @@ -136,5 +136,5 @@ void performance_test() { int main() { stress_test(); - performance_test(); + if (!sanitize) performance_test(); } -- cgit v1.2.3 From cdeded176c18240579168ee8461c5101abb47e78 Mon Sep 17 00:00:00 2001 From: mzuenni Date: Mon, 22 Sep 2025 19:32:21 +0200 Subject: reduce bounds for test --- test/graph/connect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/graph/connect.cpp') 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(2, 30); int m = Random::integer(30, 300); @@ -135,6 +135,6 @@ void performance_test() { } int main() { - stress_test(); + stress_test(sanitize ? 1'000 : 2'000); if (!sanitize) performance_test(); } -- cgit v1.2.3