8000 Possible pluggable C extension for performance by kesmit13 · Pull Request #1066 · PyMySQL/PyMySQL · GitHub
[go: up one dir, main page]

Skip to content

Possible pluggable C extension for performance #1066

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

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix formatting
  • Loading branch information
kesmit13 committed Sep 1, 2022
commit 8e0fdd98a94b3bef31be59304d46e6fc7684f1f3
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ Here are the results.

| | PyMySQL | MySQLdb | PyMySQLsv |
|--------------------------|---------|---------|-----------|
| Buffered fetchone | 224.8s | 50.6s | 19.9s |
| Buffered fetchmany(20) | 217.63s | 50.3s | 15.5s |
| Buffered fetchall | 217.9s | 49.6s | 14.8s |
| Unbuffered fetchone | 230.5s | 48.3s | 25.3s |
| Unbuffered fetchmany(20) | 224.0s | 35.0s | 14.6s |
| Unbuffered fetchall | 232.4s | 37.7s | 29.2s |
| Buffered fetchone | 224.8s | 50.6s | 19.9s |
| Buffered fetchmany(20) | 217.6s | 50.3s | 15.5s |
| Buffered fetchall | 217.9s | 49.6s | 14.8s |
| Unbuffered fetchone | 230.5s | 48.3s | 25.3s |
| Unbuffered fetchmany(20) | 224.0s | 35.0s | 14.6s |
| Unbuffered fetchall | 232.4s | 37.7s | 29.2s |

As you can see the gains are quite significant for this test case. Even MySQLdb,
which is based on the MySQL libraries takes twice as long in all but one
Expand Down
0