-
Notifications
You must be signed in to change notification settings - Fork 15
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
Added database cache benchmark #81
base: main
Are you sure you want to change the base?
Conversation
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 🙏
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 the random_*()
methods vs what we're actually trying to benchmark. We can test for that using asv profile
and if significant we should look to move that effort outside of the benchmark.
from ...utils import bench_setup | ||
|
||
|
||
class DatabaseCacheBackend: |
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?
This pull request adds database cache benchmarks as requested by @sarahboyce here
After running on these commits and one local commit showing improved set_many
I get these graphs: