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

fix(bench): shorten the benchmark id #8754

Merged
merged 10 commits into from
Mar 24, 2023
18 changes: 9 additions & 9 deletions src/common/benches/bench_hash_key_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl HashKeyDispatcher for HashKeyBenchCaseBuilder {
for null_ratio in NULL_RATIOS {
for chunk_size in CHUNK_SIZES {
let id = format!(
"{}, key type: {:?}, chunk size {}, null ratio {}",
"{} {:?}, {} rows, Pr[null]={}",
self.describe,
calc_hash_key_kind(self.data_types()),
chunk_size,
Expand Down Expand Up @@ -176,35 +176,35 @@ fn case_builders() -> Vec<HashKeyBenchCaseBuilder> {
vec![
HashKeyBenchCaseBuilder {
data_types: vec![DataType::Serial],
describe: "single Serial".to_string(),
describe: "Serial".to_string(),
},
HashKeyBenchCaseBuilder {
data_types: vec![DataType::Int32],
describe: "single int32".to_string(),
describe: "int32".to_string(),
},
HashKeyBenchCaseBuilder {
data_types: vec![DataType::Int64],
describe: "single int64".to_string(),
describe: "int64".to_string(),
},
HashKeyBenchCaseBuilder {
data_types: vec![DataType::Varchar],
describe: "single varchar".to_string(),
describe: "varchar".to_string(),
},
HashKeyBenchCaseBuilder {
data_types: vec![DataType::Int32, DataType::Int32, DataType::Int32],
describe: "composite fixed size".to_string(),
describe: "composite fixed".to_string(),
},
HashKeyBenchCaseBuilder {
data_types: vec![DataType::Int32, DataType::Int64, DataType::Int32],
describe: "composite fixed size2".to_string(),
describe: "composite fixed".to_string(),
},
HashKeyBenchCaseBuilder {
data_types: vec![DataType::Int32, DataType::Varchar],
describe: "composite fixed and not fixed size".to_string(),
describe: "mix fixed and not1".to_string(),
},
HashKeyBenchCaseBuilder {
data_types: vec![DataType::Int64, DataType::Varchar],
describe: "composite fixed and not fixed size".to_string(),
describe: "mix fixed and not2".to_string(),
},
]
}
Expand Down