- Notifications
You must be signed in to change notification settings - Fork21
Added database cache benchmark#81
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
sarahboyce left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM
@smithdc1 maybe you can review also 🙏
smithdc1 left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Hi all a few questions below. My main concern is how much work is being done by therandom_*() methods vs what we're actually trying to benchmark. We can test for that usingasv profile and if significant we should look to move that effort outside of the benchmark.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
| from ...utilsimportbench_setup | ||
| classDatabaseCacheBackend: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Do you think we could add coverage for the some of the other backends too? The benchmarks would be the same, it's just a different setting? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Can we do this in separate pull request?
…tion using different password hasher. This is related todjango/pull/81
…tion using different password hasher. This is related todjango/pull/81
This pull request adds database cache benchmarks as requested by@sarahboycehere
After running on these commits and one local commit showing improvedset_many
I get these graphs:

