-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
refactor: Adapt benchmarking utils #5003
Conversation
Pull Request Test Coverage Report for Build 5077814759
💛 - Coveralls |
Launch a DocumentStore Docker container. | ||
""" | ||
java_opts = None if n_docs < 500000 else "-Xms4096m -Xmx4096m" | ||
if document_store == "ElasticsearchDocumentStore": |
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.
If you want we can make these callables. In a benchmark setup part, we can register all document stores and their run callables and then here execute those callables.
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
Related Issues
Proposed Changes:
This PR adapts removes legacy code from
benchmarks/utils.py
and instead adds the methodsprepare_environment
,launch_document_store
,download_from_url
, andload_eval_data
.How did you test it?
Notes for the reviewer
The added utility methods will be used in the refactored benchmarking.
Checklist
fix:
,feat:
,build:
,chore:
,ci:
,docs:
,style:
,refactor:
,perf:
,test:
.