From fc1ffe487a08004d95423bc0fea594777314ab3d Mon Sep 17 00:00:00 2001 From: Filip Andersson <17986183+FilipAndersson245@users.noreply.github.com> Date: Sun, 18 Jun 2023 01:15:16 +0200 Subject: [PATCH] Removes some permutations of benchmarks for plugin encoding/decoding. (#9465) --- benches/benchmarks.rs | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/benches/benchmarks.rs b/benches/benchmarks.rs index db908ecf6..be14a9878 100644 --- a/benches/benchmarks.rs +++ b/benches/benchmarks.rs @@ -127,17 +127,7 @@ fn encoding_test_data(row_cnt: usize, col_cnt: usize) -> Value { fn encoding_benchmarks(c: &mut Criterion) { let mut group = c.benchmark_group("Encoding"); - let test_cnt_pairs = [ - (100, 5), - (100, 10), - (100, 15), - (1000, 5), - (1000, 10), - (1000, 15), - (10000, 5), - (10000, 10), - (10000, 15), - ]; + let test_cnt_pairs = [(100, 5), (100, 15), (10000, 5), (10000, 15)]; for (row_cnt, col_cnt) in test_cnt_pairs.into_iter() { for fmt in ["json", "msgpack"] { group.bench_function(&format!("{fmt} encode {row_cnt} * {col_cnt}"), |b| { @@ -154,17 +144,7 @@ fn encoding_benchmarks(c: &mut Criterion) { fn decoding_benchmarks(c: &mut Criterion) { let mut group = c.benchmark_group("Decoding"); - let test_cnt_pairs = [ - (100, 5), - (100, 10), - (100, 15), - (1000, 5), - (1000, 10), - (1000, 15), - (10000, 5), - (10000, 10), - (10000, 15), - ]; + let test_cnt_pairs = [(100, 5), (100, 15), (10000, 5), (10000, 15)]; for (row_cnt, col_cnt) in test_cnt_pairs.into_iter() { for fmt in ["json", "msgpack"] { group.bench_function(&format!("{fmt} decode for {row_cnt} * {col_cnt}"), |b| {