(
c: &mut Criterion,
column_count: usize,
row_count: usize,
projection_size: usize,
)
| 44 | } |
| 45 | |
| 46 | fn project_benchmark( |
| 47 | c: &mut Criterion, |
| 48 | column_count: usize, |
| 49 | row_count: usize, |
| 50 | projection_size: usize, |
| 51 | ) { |
| 52 | let input = make_input(column_count, row_count, projection_size); |
| 53 | |
| 54 | c.bench_with_input( |
| 55 | BenchmarkId::new( |
| 56 | "project", |
| 57 | format!( |
| 58 | "{:?}x{:?} -> {:?}x{:?}", |
| 59 | input.0.num_columns(), |
| 60 | input.0.num_rows(), |
| 61 | input.1.len(), |
| 62 | input.0.num_rows() |
| 63 | ), |
| 64 | ), |
| 65 | &input, |
| 66 | |b, (rb, projection)| { |
| 67 | b.iter(|| black_box(rb.project(projection).unwrap())); |
| 68 | }, |
| 69 | ); |
| 70 | } |
| 71 | |
| 72 | fn make_input( |
| 73 | column_count: usize, |
no test coverage detected