Skip to content

Commit 7f3c74c

Browse files
committed
Tweak bench_string_array
1 parent fdf690d commit 7f3c74c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arrow/benches/json_writer.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ fn bench_dict_array(c: &mut Criterion) {
118118

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

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

0 commit comments

Comments
 (0)