Skip to content

Commit 2493fc1

Browse files
authored
fix(bench): shorten the benchmark id (risingwavelabs#8754)
1 parent 44191a7 commit 2493fc1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/common/benches/bench_hash_key_encoding.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl HashKeyDispatcher for HashKeyBenchCaseBuilder {
5050
for null_ratio in NULL_RATIOS {
5151
for chunk_size in CHUNK_SIZES {
5252
let id = format!(
53-
"{}, key type: {:?}, chunk size {}, null ratio {}",
53+
"{} {:?}, {} rows, Pr[null]={}",
5454
self.describe,
5555
calc_hash_key_kind(self.data_types()),
5656
chunk_size,
@@ -176,35 +176,35 @@ fn case_builders() -> Vec<HashKeyBenchCaseBuilder> {
176176
vec![
177177
HashKeyBenchCaseBuilder {
178178
data_types: vec![DataType::Serial],
179-
describe: "single Serial".to_string(),
179+
describe: "Serial".to_string(),
180180
},
181181
HashKeyBenchCaseBuilder {
182182
data_types: vec![DataType::Int32],
183-
describe: "single int32".to_string(),
183+
describe: "int32".to_string(),
184184
},
185185
HashKeyBenchCaseBuilder {
186186
data_types: vec![DataType::Int64],
187-
describe: "single int64".to_string(),
187+
describe: "int64".to_string(),
188188
},
189189
HashKeyBenchCaseBuilder {
190190
data_types: vec![DataType::Varchar],
191-
describe: "single varchar".to_string(),
191+
describe: "varchar".to_string(),
192192
},
193193
HashKeyBenchCaseBuilder {
194194
data_types: vec![DataType::Int32, DataType::Int32, DataType::Int32],
195-
describe: "composite fixed size".to_string(),
195+
describe: "composite fixed".to_string(),
196196
},
197197
HashKeyBenchCaseBuilder {
198198
data_types: vec![DataType::Int32, DataType::Int64, DataType::Int32],
199-
describe: "composite fixed size2".to_string(),
199+
describe: "composite fixed".to_string(),
200200
},
201201
HashKeyBenchCaseBuilder {
202202
data_types: vec![DataType::Int32, DataType::Varchar],
203-
describe: "composite fixed and not fixed size".to_string(),
203+
describe: "mix fixed and not1".to_string(),
204204
},
205205
HashKeyBenchCaseBuilder {
206206
data_types: vec![DataType::Int64, DataType::Varchar],
207-
describe: "composite fixed and not fixed size".to_string(),
207+
describe: "mix fixed and not2".to_string(),
208208
},
209209
]
210210
}

0 commit comments

Comments
 (0)