Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add benchmark #4

wants to merge 1 commit into from

Conversation

toloco
Copy link
Collaborator

@toloco toloco commented Sep 23, 2022

No description provided.

@toloco toloco marked this pull request as ready for review September 23, 2022 15:44
WORKDIR /app

COPY ./src/requeriments.txt .
RUN pip install -r requeriments.txt
Copy link
Owner

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))
Copy link
Owner

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}")
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants