-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Speed up sqlite3 tests #108550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
3.11
only security fixes
3.12
only security fixes
3.13
bugs and security fixes
tests
Tests in the Lib/test dir
type-feature
A feature request or enhancement
Comments
erlend-aasland
added a commit
to erlend-aasland/cpython
that referenced
this issue
Aug 27, 2023
Refactor the CLI so we can easily invoke it and mock command-line arguments. Adapt the CLI tests so we no longer have to launch a separate process. Disable the busy handler for all concurrency tests; we have full control over the order of the SQLite C API calls, so we can safely do this. The sqlite3 test suite now completes ~10 times faster than before.
erlend-aasland
added a commit
that referenced
this issue
Aug 28, 2023
Refactor the CLI so we can easily invoke it and mock command-line arguments. Adapt the CLI tests so we no longer have to launch a separate process. Disable the busy handler for all concurrency tests; we have full control over the order of the SQLite C API calls, so we can safely do this. The sqlite3 test suite now completes ~8 times faster than before. Co-authored-by: Serhiy Storchaka <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Aug 28, 2023
Refactor the CLI so we can easily invoke it and mock command-line arguments. Adapt the CLI tests so we no longer have to launch a separate process. Disable the busy handler for all concurrency tests; we have full control over the order of the SQLite C API calls, so we can safely do this. The sqlite3 test suite now completes ~8 times faster than before. (cherry picked from commit 0e8b3fc) Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
erlend-aasland
added a commit
to erlend-aasland/cpython
that referenced
this issue
Aug 28, 2023
Disable the busy handler for all concurrency tests; we have full control over the order of the SQLite C API calls, so we can safely do this. test_sqlite3.test_transactions now completes ~10 times faster than before. Co-authored-by: Serhiy Storchaka <[email protected]>
erlend-aasland
added a commit
to erlend-aasland/cpython
that referenced
this issue
Aug 28, 2023
Disable the busy handler for all concurrency tests; we have full control over the order of the SQLite C API calls, so we can safely do this. test_sqlite3.test_transactions now completes ~10 times faster than before. Co-authored-by: Serhiy Storchaka <[email protected]>
Backports are queued up; marking this as resolved. |
erlend-aasland
added a commit
that referenced
this issue
Aug 28, 2023
Disable the busy handler for all concurrency tests; we have full control over the order of the SQLite C API calls, so we can safely do this. test_sqlite3.test_transactions now completes ~10 times faster than before. Co-authored-by: Serhiy Storchaka <[email protected]>
Yhg1s
pushed a commit
that referenced
this issue
Aug 28, 2023
gh-108550: Speed up sqlite3 tests (GH-108551) Refactor the CLI so we can easily invoke it and mock command-line arguments. Adapt the CLI tests so we no longer have to launch a separate process. Disable the busy handler for all concurrency tests; we have full control over the order of the SQLite C API calls, so we can safely do this. The sqlite3 test suite now completes ~8 times faster than before. (cherry picked from commit 0e8b3fc) Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Serhiy Storchaka <[email protected]>
erlend-aasland
added a commit
to erlend-aasland/cpython
that referenced
this issue
Aug 29, 2023
erlend-aasland
added a commit
that referenced
this issue
Aug 29, 2023
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Aug 29, 2023
…honGH-108618) (cherry picked from commit c884784) Co-authored-by: Erlend E. Aasland <[email protected]>
Yhg1s
pushed a commit
that referenced
this issue
Aug 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.11
only security fixes
3.12
only security fixes
3.13
bugs and security fixes
tests
Tests in the Lib/test dir
type-feature
A feature request or enhancement
Feature or enhancement
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Proposal:
On my MacBook Pro M1, the sqlite3 test suite takes between 1.7 and up to 3 seconds to run. This is caused by the following inefficiencies:
With the following improvements, I can run the sqlite3 test suite in 350 milliseconds:
Linked PRs
The text was updated successfully, but these errors were encountered: