298: Rename the search benchmarks r=Kerollmops a=irevoire

And fix a bug. As always, I was not closing the env.

Co-authored-by: Tamo <tamo@meilisearch.com>
This commit is contained in:
bors[bot] 2021-07-29 15:33:15 +00:00 committed by GitHub
commit cb45a10bcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 4 deletions

View File

@ -4,9 +4,9 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
dataset_name: dataset_name:
description: 'The name of the dataset used to benchmark (songs, wiki or indexing)' description: 'The name of the dataset used to benchmark (search_songs, search_wiki or indexing)'
required: false required: false
default: 'songs' default: 'search_songs'
env: env:
HOME: "/home/runner" # The actions-rs/toolchain@v1 can fail we have no $HOME defined HOME: "/home/runner" # The actions-rs/toolchain@v1 can fail we have no $HOME defined

View File

@ -22,11 +22,11 @@ convert_case = "0.4"
reqwest = { version = "0.11.3", features = ["blocking", "rustls-tls"], default-features = false } reqwest = { version = "0.11.3", features = ["blocking", "rustls-tls"], default-features = false }
[[bench]] [[bench]]
name = "songs" name = "search_songs"
harness = false harness = false
[[bench]] [[bench]]
name = "wiki" name = "search_wiki"
harness = false harness = false
[[bench]] [[bench]]

View File

@ -115,5 +115,7 @@ pub fn run_benches(c: &mut criterion::Criterion, confs: &[Conf]) {
}); });
} }
group.finish(); group.finish();
index.prepare_for_closing().wait();
} }
} }