summaryrefslogtreecommitdiff
path: root/test/math/bigint.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/math/bigint.cpp
parentbf4eda36d4c13be468236bf33baa2574e8692ca7 (diff)
parentcdeded176c18240579168ee8461c5101abb47e78 (diff)
merge mzuenni
Diffstat (limited to 'test/math/bigint.cpp')
-rw-r--r--test/math/bigint.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/math/bigint.cpp b/test/math/bigint.cpp
index 538d0dc..2d75343 100644
--- a/test/math/bigint.cpp
+++ b/test/math/bigint.cpp
@@ -35,9 +35,9 @@ struct modInt {
constexpr ll MOD = 1'394'633'899;
constexpr ll POOL = 8;
-void stress_test() {
+void stress_test(int LIM) {
int queries = 0;
- for (int tries = 0; tries < 1000; tries++) {
+ for (int tries = 0; tries < LIM; tries++) {
vector<modInt<MOD>> expectedPool(POOL);
vector<bigint> gotPool(POOL);
for (int i = 0; i < POOL; i++) {
@@ -117,6 +117,7 @@ void stress_test() {
}
int main() {
- stress_test();
+ stress_test(100);
+ if (!sanitize) stress_test(1000);
}