From 7f3c74c0885729a148dda6b553184d4d6846b327 Mon Sep 17 00:00:00 2001 From: Raphael Taylor-Davies Date: Sat, 20 Jan 2024 13:09:07 +0000 Subject: [PATCH] Tweak bench_string_array --- arrow/benches/json_writer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arrow/benches/json_writer.rs b/arrow/benches/json_writer.rs index a154599980ce..9e40f74ead14 100644 --- a/arrow/benches/json_writer.rs +++ b/arrow/benches/json_writer.rs @@ -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::(NUM_ROWS, 0.)); - let c2 = Arc::new(create_string_dict_array::(NUM_ROWS, 0., 20)); - let c3 = Arc::new(create_string_dict_array::(NUM_ROWS, 0.1, 20)); + let c2 = Arc::new(create_string_array_with_len::(NUM_ROWS, 0., 10)); + let c3 = Arc::new(create_string_array_with_len::(NUM_ROWS, 0.1, 20)); let batch = RecordBatch::try_from_iter([("c1", c1 as _), ("c2", c2 as _), ("c3", c3 as _)]).unwrap();