Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Rewrite the indexing benchmarks #315

Merged
merged 1 commit into from
Aug 24, 2021
Merged

Rewrite the indexing benchmarks #315

merged 1 commit into from
Aug 24, 2021

Conversation

irevoire
Copy link
Member

There was a panic on the benchmark and while I was trying to understand what was happening I decided to rewrite the way the benchmarks were working.

Before we were creating a database with the good setting, and then for each benchmarks we were:

  1. Deleting all documents in the database
  2. Indexing a batch of documents

Now for each iteration we recreate entirely a new database from scratch.
Since deleting all the documents in a database may not be the same as starting with a fresh new database I prefer this solution.

@irevoire
Copy link
Member Author

I ran the full bench suit on the server and it works so I think we can merge 🎉

@irevoire irevoire requested a review from Kerollmops August 19, 2021 17:16
Copy link
Member

@Kerollmops Kerollmops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you a lot for this, LGTM!
Note that the panic was related to a real bug in the core #317.

bors merge

@bors
Copy link
Contributor

bors bot commented Aug 24, 2021

@bors bors bot merged commit 794c0f6 into main Aug 24, 2021
@bors bors bot deleted the bench/indexing branch August 24, 2021 15:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants