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

Function array_without_nulls

arrow-array/benches/union_array.rs:41–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41fn array_without_nulls() -> ArrayRef {
42 let mut rng = rng();
43
44 let values = ScalarBuffer::from_iter(repeat_with(|| rng.random()).take(4096));
45
46 Arc::new(Int32Array::new(values.clone(), None))
47}
48
49fn criterion_benchmark(c: &mut Criterion) {
50 for with_nulls in 1..12 {

Callers 1

criterion_benchmarkFunction · 0.85

Calls 4

randomMethod · 0.80
from_iterFunction · 0.50
takeMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected