MCPcopy Create free account
hub / github.com/apache/datafusion / build_keys

Function build_keys

datafusion/core/benches/map_query_sql.rs:36–43  ·  view source on GitHub ↗
(rng: &mut ThreadRng)

Source from the content-addressed store, hash-verified

34mod data_utils;
35
36fn build_keys(rng: &mut ThreadRng) -> Vec<String> {
37 let mut keys = HashSet::with_capacity(1000);
38 while keys.len() < 1000 {
39 let key = rng.random_range(0..9999).to_string();
40 keys.insert(key);
41 }
42 keys.into_iter().collect()
43}
44
45fn build_values(rng: &mut ThreadRng) -> Vec<i32> {
46 let mut values = vec![];

Callers 1

criterion_benchmarkFunction · 0.85

Calls 5

collectMethod · 0.80
lenMethod · 0.45
to_stringMethod · 0.45
insertMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…