Skip to content

Commit b0e2f1d

Browse files
committed
chore: fmt
1 parent 3e9f663 commit b0e2f1d

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

arrow-json/benches/json-reader.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
use arrow_json::reader::Decoder;
1918
use arrow_json::ReaderBuilder;
19+
use arrow_json::reader::Decoder;
2020
use arrow_schema::{DataType, Field, Schema};
2121
use criterion::{
2222
BenchmarkId, Criterion, SamplingMode, Throughput, criterion_group, criterion_main,
@@ -179,12 +179,7 @@ fn bench_binary_hex(c: &mut Criterion) {
179179
bench_decode_binary(c, "decode_binary_view_hex_json", &binary_data, view_field);
180180
}
181181

182-
fn bench_decode_schema(
183-
c: &mut Criterion,
184-
name: &str,
185-
data: &[u8],
186-
schema: Arc<Schema>,
187-
) {
182+
fn bench_decode_schema(c: &mut Criterion, name: &str, data: &[u8], schema: Arc<Schema>) {
188183
let mut group = c.benchmark_group(name);
189184
group.throughput(Throughput::Bytes(data.len() as u64));
190185
group.sample_size(50);
@@ -225,8 +220,7 @@ fn build_wide_projection_json(rows: usize, total_fields: usize) -> Vec<u8> {
225220

226221
fn bench_wide_projection(c: &mut Criterion) {
227222
// Wide projection workload: tests overhead of parsing unused fields
228-
let wide_projection_data =
229-
build_wide_projection_json(ROWS, WIDE_PROJECTION_TOTAL_FIELDS);
223+
let wide_projection_data = build_wide_projection_json(ROWS, WIDE_PROJECTION_TOTAL_FIELDS);
230224

231225
let full_schema = build_schema(WIDE_PROJECTION_TOTAL_FIELDS);
232226
bench_decode_schema(

0 commit comments

Comments
 (0)