Skip to content

Commit

Permalink
Removes some permutations of benchmarks for plugin encoding/decoding.…
Browse files Browse the repository at this point in the history
… (#9465)
  • Loading branch information
FilipAndersson245 committed Jun 17, 2023
1 parent 7d301c7 commit fc1ffe4
Showing 1 changed file with 2 additions and 22 deletions.
24 changes: 2 additions & 22 deletions benches/benchmarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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| {
Expand All @@ -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| {
Expand Down

0 comments on commit fc1ffe4

Please sign in to comment.