diff --git a/benches/micro.rs b/benches/micro.rs index 4a593af..db7e67c 100644 --- a/benches/micro.rs +++ b/benches/micro.rs @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, @@ -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, diff --git a/src/codec/decoder/body.rs b/src/codec/decoder/body.rs index ed6573b..94498ed 100644 --- a/src/codec/decoder/body.rs +++ b/src/codec/decoder/body.rs @@ -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) => { diff --git a/src/codec/decoder/dedup.rs b/src/codec/decoder/dedup.rs index 8b936ae..0531869 100644 --- a/src/codec/decoder/dedup.rs +++ b/src/codec/decoder/dedup.rs @@ -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(), )] }) diff --git a/src/codec/decoder/fragment.rs b/src/codec/decoder/fragment.rs index 44f02f9..6268cf7 100644 --- a/src/codec/decoder/fragment.rs +++ b/src/codec/decoder/fragment.rs @@ -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()), ] })