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

Function add_benchmark

arrow/benches/mutable_array.rs:50–58  ·  view source on GitHub ↗
(c: &mut Criterion)

Source from the content-addressed store, hash-verified

48}
49
50fn add_benchmark(c: &mut Criterion) {
51 let v1 = create_string_array::<i32>(1024, 0.0);
52 let v2 = create_slices(1024);
53 c.bench_function("mutable str 1024", |b| b.iter(|| bench(&v1, &v2)));
54
55 let v1 = create_string_array::<i32>(1024, 0.5);
56 let v2 = create_slices(1024);
57 c.bench_function("mutable str nulls 1024", |b| b.iter(|| bench(&v1, &v2)));
58}
59
60criterion_group!(benches, add_benchmark);
61criterion_main!(benches);

Callers

nothing calls this directly

Calls 3

create_slicesFunction · 0.85
benchFunction · 0.85
iterMethod · 0.45

Tested by

no test coverage detected