MCPcopy Create free account
hub / github.com/apache/arrow-rs / create_bool_array

Function create_bool_array

arrow/benches/sort_kernel.rs:39–44  ·  view source on GitHub ↗
(size: usize, with_nulls: bool)

Source from the content-addressed store, hash-verified

37}
38
39fn create_bool_array(size: usize, with_nulls: bool) -> ArrayRef {
40 let null_density = if with_nulls { 0.5 } else { 0.0 };
41 let true_density = 0.5;
42 let array = create_boolean_array(size, null_density, true_density);
43 Arc::new(array)
44}
45
46fn bench_sort(array: &dyn Array) {
47 hint::black_box(sort(array, None).unwrap());

Callers 1

add_benchmarkFunction · 0.85

Calls 1

create_boolean_arrayFunction · 0.85

Tested by

no test coverage detected