Skip to content

Commit

Permalink
bench opts
Browse files Browse the repository at this point in the history
Signed-off-by: iGxnon <igxnon@gmail.com>
  • Loading branch information
iGxnon committed Aug 2, 2024
1 parent e0f09fb commit 5762b9c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions benches/micro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn codec_benchmark(c: &mut Criterion) {
let opts = micro_bench::codec::Options {
frame_per_set: 1,
frame_set_cnt: 14400,
duplicated_ratio: 0.01,
duplicated_ratio: 0.,
unordered: true,
parted_size: 4,
shuffle: false,
Expand Down Expand Up @@ -48,7 +48,7 @@ pub fn codec_benchmark(c: &mut Criterion) {
let opts = micro_bench::codec::Options {
frame_per_set: 6,
frame_set_cnt: 600,
duplicated_ratio: 0.01,
duplicated_ratio: 0.,
unordered: true,
parted_size: 1,
shuffle: false,
Expand Down Expand Up @@ -78,7 +78,7 @@ pub fn codec_benchmark(c: &mut Criterion) {
let opts = micro_bench::codec::Options {
frame_per_set: 36,
frame_set_cnt: 100,
duplicated_ratio: 0.01,
duplicated_ratio: 0.,
unordered: true,
parted_size: 1,
shuffle: false,
Expand Down Expand Up @@ -108,7 +108,7 @@ pub fn codec_benchmark(c: &mut Criterion) {
let opts = micro_bench::codec::Options {
frame_per_set: 1,
frame_set_cnt: 1440,
duplicated_ratio: 0.01,
duplicated_ratio: 0.,
unordered: true,
parted_size: 4,
shuffle: false,
Expand Down Expand Up @@ -138,7 +138,7 @@ pub fn codec_benchmark(c: &mut Criterion) {
let opts = micro_bench::codec::Options {
frame_per_set: 6,
frame_set_cnt: 1550,
duplicated_ratio: 0.01,
duplicated_ratio: 0.,
unordered: true,
parted_size: 1,
shuffle: false,
Expand Down Expand Up @@ -168,7 +168,7 @@ pub fn codec_benchmark(c: &mut Criterion) {
let opts = micro_bench::codec::Options {
frame_per_set: 36,
frame_set_cnt: 1378,
duplicated_ratio: 0.01,
duplicated_ratio: 0.,
unordered: true,
parted_size: 1,
shuffle: false,
Expand Down
2 changes: 1 addition & 1 deletion src/codec/decoder/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ where
};

let span = LocalSpan::enter_with_local_parent("codec.body_decoder")
.with_properties(|| [("frame_seq_num", frame_set.seq_num.to_string())]);
.with_properties(|| [("seq_num", frame_set.seq_num.to_string())]);

match FrameBody::read(frame_set.set.body) {
Ok(body) => {
Expand Down
2 changes: 1 addition & 1 deletion src/codec/decoder/dedup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ where
this.span.get_or_insert_with(|| {
Span::enter_with_local_parent("codec.deduplication").with_properties(|| {
[(
"dup_window_size",
"wnd_size",
this.window.received_status.len().to_string(),
)]
})
Expand Down
2 changes: 1 addition & 1 deletion src/codec/decoder/fragment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ where
this.span.get_or_insert_with(|| {
Span::enter_with_local_parent("codec.defragment").with_properties(|| {
[
("buffer_size", this.buffer.len().to_string()),
("buf_size", this.buffer.len().to_string()),
("pending", this.parts.len().to_string()),
]
})
Expand Down

0 comments on commit 5762b9c

Please sign in to comment.