-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add benchmark #4
base: main
Are you sure you want to change the base?
Conversation
WORKDIR /app | ||
|
||
COPY ./src/requeriments.txt . | ||
RUN pip install -r requeriments.txt |
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.
Let's just switch to pipenv
?
BASE_URL = os.getenv("BASE_URL", "http://0.0.0.0:9200") | ||
INDEX_NAME = os.getenv("INDEX_NAME", "test") | ||
DATA_PATH = os.getenv("DATA_PATH", "/data/") | ||
N_PROCS = int(os.getenv("N_PROCS", 8)) |
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 you default to cpu_count()
from mp?
|
||
|
||
def experiment(count: int): | ||
requests.delete(f"{BASE_URL}/{INDEX_NAME}") |
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 you please add an swtcih to select between calling ElasticSearch and nxsearch?
No description provided.