Skip to content

Add benchmark#4

Open
toloco wants to merge 1 commit into
rmind:mainfrom
toloco:benchmark
Open

Add benchmark#4
toloco wants to merge 1 commit into
rmind:mainfrom
toloco:benchmark

Conversation

@toloco

@toloco toloco commented Sep 23, 2022

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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