Skip to content

Commit 6153d66

Browse files
committed
do not run slow test with 1 thread
1 parent 69bfec6 commit 6153d66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/de/tilman_neumann/jml/factor/CombinedFactorAlgorithm1ThreadTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ public void testSomeBiggerNumbers() {
209209
assertFullFactorizationSuccess("874186654300294020965320730991996026550891341278308", "2^2 * 3 * 471997 * 654743 * 2855761 * 79833227 * 982552477 * 1052328969055591"); // 170 bit
210210
assertFullFactorizationSuccess("11111111111111111111111111155555555555111111111111111", "67 * 157 * 1056289676880987842105819104055096069503860738769"); // 173 bit
211211
assertFullFactorizationSuccess("1388091470446411094380555803943760956023126025054082930201628998364642", "2 * 3 * 1907 * 1948073 * 1239974331653 * 50222487570895420624194712095309533522213376829"); // 230 bit
212-
// 236 bit, takes ~ 8 seconds with 2 threads on Ryzen3900X
213-
assertFullFactorizationSuccess("99999999999999999999999999999999999999999999999999999999999999999999999", "3^2 * 241573142393627673576957439049 * 45994811347886846310221728895223034301839");
214212
if (RUN_SLOW_TESTS_TOO) {
213+
// 236 bit, takes ~ 8 seconds with 2 threads on Ryzen3900X
214+
assertFullFactorizationSuccess("99999999999999999999999999999999999999999999999999999999999999999999999", "3^2 * 241573142393627673576957439049 * 45994811347886846310221728895223034301839");
215215
// 263 bit bit, takes ~ 52 seconds with 2 threads on Ryzen3900X
216216
assertFullFactorizationSuccess("10000000000000000000000000000000000000000000000000000000000000000000000000005923", "1333322076518899001350381760807974795003 * 7500063320115780212377802894180923803641");
217217
// 280 bit bit, takes ~ 158 seconds with 2 threads on Ryzen3900X

0 commit comments

Comments
 (0)