Avatar for the DaniPopes user
DaniPopes
const-hex
BlogDocsChangelog

Use `[MaybeUninit<u8>]` throughout decode and encode paths

#48
Comparing
elichai:maybeuninit
(
63b1bbe
) with
master
(
1143588
)
CodSpeed Performance Gauge
-19%
Improvement
1
Regression
2
Untouched
33

Benchmarks

36 total
bench1_32b
benches/bench/main.rs::check::const_hex
CodSpeed Performance Gauge
-19%
372.5 ns460 ns
bench2_256b
benches/bench/main.rs::check::const_hex
CodSpeed Performance Gauge
-16%
631.1 ns747.8 ns
bench1_32b
benches/bench/main.rs::encode_to_slice::const_hex
CodSpeed Performance Gauge
+11%
580.6 ns522.2 ns
bench1_32b
benches/bench/main.rs::decode_to_slice::const_hex
CodSpeed Performance Gauge
+9%
683.1 ns624.7 ns
bench1_32b
benches/bench/main.rs::encode::const_hex
CodSpeed Performance Gauge
+8%
1.1 µs1 µs
bench2_256b
benches/bench/main.rs::encode::const_hex
CodSpeed Performance Gauge
+8%
2.4 µs2.2 µs
bench1_32b
benches/bench/main.rs::format::const_hex
CodSpeed Performance Gauge
+7%
1.4 µs1.3 µs
bench2_256b
benches/bench/main.rs::format::const_hex
CodSpeed Performance Gauge
+5%
2.3 µs2.2 µs
bench1_32b
benches/bench/main.rs::decode::const_hex
CodSpeed Performance Gauge
+5%
1.2 µs1.1 µs
bench3_2k
benches/bench/main.rs::decode::const_hex
CodSpeed Performance Gauge
+4%
6.4 µs6.2 µs
bench2_256b
benches/bench/main.rs::encode_to_slice::const_hex
CodSpeed Performance Gauge
+3%
885.8 ns856.7 ns
bench2_256b
benches/bench/main.rs::decode_to_slice::const_hex
CodSpeed Performance Gauge
+3%
1 µs1 µs
bench4_16k
benches/bench/main.rs::decode::const_hex
CodSpeed Performance Gauge
+2%
30.2 µs29.4 µs
bench3_2k
benches/bench/main.rs::encode_to_slice::const_hex
CodSpeed Performance Gauge
+2%
3.7 µs3.6 µs
bench2_256b
benches/bench/main.rs::decode::const_hex
CodSpeed Performance Gauge
+1%
2.4 µs2.3 µs
bench3_2k
benches/bench/main.rs::format::const_hex
CodSpeed Performance Gauge
+1%
9.1 µs9 µs
bench5_128k
benches/bench/main.rs::check::const_hex
CodSpeed Performance Gauge
+1%
152.5 µs151.7 µs
bench5_128k
benches/bench/main.rs::decode::const_hex
CodSpeed Performance Gauge
0%
220.4 µs219.4 µs
bench4_16k
benches/bench/main.rs::encode::const_hex
CodSpeed Performance Gauge
0%
28.1 µs28.1 µs
bench4_16k
benches/bench/main.rs::encode_to_slice::const_hex
CodSpeed Performance Gauge
0%
26 µs26 µs
bench4_16k
benches/bench/main.rs::format::const_hex
CodSpeed Performance Gauge
0%
89 µs88.8 µs
bench6_1m
benches/bench/main.rs::decode::const_hex
CodSpeed Performance Gauge
0%
1.7 ms1.7 ms
bench5_128k
benches/bench/main.rs::encode_to_slice::const_hex
CodSpeed Performance Gauge
0%
204.7 µs204.7 µs
bench5_128k
benches/bench/main.rs::format::const_hex
CodSpeed Performance Gauge
0%
701 µs700.8 µs
bench5_128k
benches/bench/main.rs::decode_to_slice::const_hex
CodSpeed Performance Gauge
0%
217.4 µs217.3 µs

Commits

Click on a commit to change the comparison range
Base
master
1143588
-19.02%
refactor: use `MaybeUninit` throughout decode and encode paths
63b1bbe
26 days ago
by elichai
© 2026 CodSpeed Technology
Home Terms Privacy Docs