Skip to content

Conversation

@Jacob-Stevens-Haas
Copy link
Member

Add pytest option --jax-pcc for the jax persistent compilation cache. This uses a jax config to set cache options.
Total size of cache for all tests (well, really four main ones) is only 2.7M on linux, 416 files.
On subsequent calls, reduces runtime from
4.16s call test_optimizers.py::test_fit[SBR]
2.98s call test_optimizers.py::test_complexity_not_fitted[SBR]
2.89s call test_optimizers.py::test_pickle[SBR-opt_args1]
2.89s call test_optimizers.py::test_sbr_accurate

To:
1.94s call test_optimizers.py::test_fit[SBR]
1.56s call test_optimizers.py::test_sbr_accurate
1.23s call test_optimizers.py::test_pickle[SBR-opt_args1]
1.18s call test_optimizers.py::test_complexity_not_fitted[SBR]

Add pytest option --jax-pcc for the jax persistent compilation cache.
This uses a jax config to set cache options.
Total size of cache for all tests (well, really four main ones) is only
2.7M on linux, 416 files.
Reduces runtime from
4.16s call     test_optimizers.py::test_fit[SBR]
2.98s call     test_optimizers.py::test_complexity_not_fitted[SBR]
2.89s call     test_optimizers.py::test_pickle[SBR-opt_args1]
2.89s call     test_optimizers.py::test_sbr_accurate

To:
1.94s call     test_optimizers.py::test_fit[SBR]
1.56s call     test_optimizers.py::test_sbr_accurate
1.23s call     test_optimizers.py::test_pickle[SBR-opt_args1]
1.18s call     test_optimizers.py::test_complexity_not_fitted[SBR]
@codecov
Copy link

codecov bot commented Sep 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.03%. Comparing base (b866bc7) to head (797f0ba).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #649   +/-   ##
=======================================
  Coverage   95.03%   95.03%           
=======================================
  Files          38       38           
  Lines        4106     4106           
=======================================
  Hits         3902     3902           
  Misses        204      204           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Jacob-Stevens-Haas Jacob-Stevens-Haas merged commit 472e5a2 into master Sep 24, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants