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

Fix the wiki indexing benchmark #385

Merged
merged 1 commit into from
Oct 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion benchmarks/benches/indexing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ fn indexing_wiki(c: &mut Criterion) {
move |index| {
let update_builder = UpdateBuilder::new(0);
let mut wtxn = index.write_txn().unwrap();
let builder = update_builder.index_documents(&mut wtxn, &index);
let mut builder = update_builder.index_documents(&mut wtxn, &index);
builder.enable_autogenerate_docids();

let documents = utils::documents_from(datasets_paths::SMOL_WIKI_ARTICLES, "csv");
builder.execute(documents, |_, _| ()).unwrap();
Expand Down