Commit 6dba2f2
committed
Reduce unnecessary iteration counts in slow tests
Targets tests identified by ricardoV94 in #7686:
- test_weakref_leak: reduce warmup+check from 20 to 8 iterations
- test_default_value_transform_logprob: reduce loop from 10 to 3
- test_interpolated (TestMatchesScipy): reduce x_points from 100k to 20k
- test_progressbar_nested_compound: reduce draws/tune from 10 to 5
- TestLKJCorr: reduce n values from (2,10,50) to (2,50)
- TestLKJCholeskyCov: reduce sizes_to_check from 7 to 4
- TestLKJCholeskCov: reduce parametrize combos from 6 to 4
- TestInterpolated: reduce mu*sigma loop from 56 to 4 combos
Not modified: test_mvnormal_indef (26.8s) — slowness is PyTensor
compilation overhead, not reducible without removing coverage.1 parent d3ec5c7 commit 6dba2f2
4 files changed
Lines changed: 38 additions & 36 deletions
File tree
- tests
- distributions
- logprob
- progress_bar
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
968 | | - | |
| 968 | + | |
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| |||
2503 | 2503 | | |
2504 | 2504 | | |
2505 | 2505 | | |
2506 | | - | |
2507 | | - | |
2508 | | - | |
2509 | | - | |
2510 | | - | |
2511 | | - | |
2512 | | - | |
2513 | | - | |
2514 | | - | |
2515 | | - | |
2516 | | - | |
2517 | | - | |
2518 | | - | |
2519 | | - | |
2520 | | - | |
2521 | | - | |
2522 | | - | |
2523 | | - | |
2524 | | - | |
2525 | | - | |
2526 | | - | |
2527 | | - | |
| 2506 | + | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
980 | 980 | | |
981 | 981 | | |
982 | 982 | | |
983 | | - | |
984 | 983 | | |
985 | 984 | | |
986 | 985 | | |
| |||
2176 | 2175 | | |
2177 | 2176 | | |
2178 | 2177 | | |
2179 | | - | |
| 2178 | + | |
2180 | 2179 | | |
2181 | 2180 | | |
2182 | 2181 | | |
| |||
2214 | 2213 | | |
2215 | 2214 | | |
2216 | 2215 | | |
2217 | | - | |
| 2216 | + | |
2218 | 2217 | | |
2219 | 2218 | | |
2220 | | - | |
2221 | | - | |
2222 | | - | |
2223 | 2219 | | |
2224 | 2220 | | |
2225 | 2221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
618 | 620 | | |
619 | 621 | | |
620 | | - | |
621 | | - | |
622 | | - | |
| 622 | + | |
| 623 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments