Skip to content

Make the tests run faster by reducing PREC - #1500

Open
certik wants to merge 1 commit into
symengine:mainfrom
certik:test_series_generic
Open

certik wants to merge 1 commit into
symengine:mainfrom
certik:test_series_generic

Conversation

@certik

@certik certik commented Feb 7, 2019

Copy link
Copy Markdown
Contributor

This speeds up the test_series_generic test in Debug mode from 1.09s to 0.83s.
Before:

$ ctest -R test_series_generic
Test project /home/certik/repos/symengine
    Start 6: test_series_generic
1/1 Test #6: test_series_generic ..............   Passed    1.09 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   1.10 sec

After:

$ ctest -R test_series_generic
Test project /home/certik/repos/symengine
    Start 6: test_series_generic
1/1 Test #6: test_series_generic ..............   Passed    0.83 sec

100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.84 sec

This helps with #1012, but still not fixed.

@certik
certik force-pushed the test_series_generic branch from 7a4b561 to c636917 Compare February 18, 2019 15:57
@certik

certik commented Feb 18, 2019

Copy link
Copy Markdown
Contributor Author

I rebased on top of the latest master. The tests should pass now.

@certik
certik requested a review from isuruf March 28, 2019 20:00
@isuruf

isuruf commented Apr 11, 2019

Copy link
Copy Markdown
Member

I don't think the test time is a big issue. Were large prec used to test some specific code paths?

@certik

certik commented Apr 11, 2019

Copy link
Copy Markdown
Contributor Author

Were large prec used to test some specific code paths?

That's what I am not sure --- it doesn't seem so. And if it doesn't test anything useful, I would argue the test should be as fast as possible. As we will keep adding more tests in the future, every bit counts.

This branch has not been deployed

No deployments
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