Skip to content

Commit

Permalink
Tweak bench_string_array
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Jan 23, 2024
1 parent fdf690d commit 3c90e2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arrow/benches/json_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ fn bench_dict_array(c: &mut Criterion) {

fn bench_string_array(c: &mut Criterion) {
let c1 = Arc::new(create_string_array::<i32>(NUM_ROWS, 0.));
let c2 = Arc::new(create_string_dict_array::<Int32Type>(NUM_ROWS, 0., 20));
let c3 = Arc::new(create_string_dict_array::<Int32Type>(NUM_ROWS, 0.1, 20));
let c2 = Arc::new(create_string_array_with_len::<i32>(NUM_ROWS, 0., 10));
let c3 = Arc::new(create_string_array_with_len::<i32>(NUM_ROWS, 0.1, 20));

let batch =
RecordBatch::try_from_iter([("c1", c1 as _), ("c2", c2 as _), ("c3", c3 as _)]).unwrap();
Expand Down

0 comments on commit 3c90e2b

Please sign in to comment.