Avatar for the DaniPopes user
DaniPopes
const-hex
BlogDocsChangelog

refactor: return error position from check and decode_checked

#42Closed
Comparing
dani/check-result-position
(
f73c872
) with
master
(
22291dc
)
CodSpeed Performance Gauge
+12%
Improvement
1
Untouched
35

Benchmarks

36 total
bench1_32b
benches/bench/main.rs::encode_to_slice::const_hex
CodSpeed Performance Gauge
+12%
551.4 ns493.1 ns
bench1_32b
benches/bench/main.rs::decode::const_hex
CodSpeed Performance Gauge
+8%
1.2 µs1.1 µs
bench1_32b
benches/bench/main.rs::format::const_hex
CodSpeed Performance Gauge
+7%
1.4 µs1.3 µs
bench1_32b
benches/bench/main.rs::encode::const_hex
CodSpeed Performance Gauge
+6%
1.1 µs1 µs
bench2_256b
benches/bench/main.rs::decode::const_hex
CodSpeed Performance Gauge
+4%
2.4 µs2.4 µs
bench2_256b
benches/bench/main.rs::encode::const_hex
CodSpeed Performance Gauge
+3%
2.4 µs2.3 µs
bench3_2k
benches/bench/main.rs::encode::const_hex
CodSpeed Performance Gauge
+2%
5.6 µs5.6 µs
bench2_256b
benches/bench/main.rs::format::const_hex
CodSpeed Performance Gauge
+1%
2.3 µs2.3 µs
bench4_16k
benches/bench/main.rs::encode::const_hex
CodSpeed Performance Gauge
0%
27.4 µs27.3 µs
bench5_128k
benches/bench/main.rs::encode::const_hex
CodSpeed Performance Gauge
0%
207.6 µs207.5 µs
bench6_1m
benches/bench/main.rs::format::const_hex
CodSpeed Performance Gauge
0%
3.9 ms3.9 ms
bench5_128k
benches/bench/main.rs::format::const_hex
CodSpeed Performance Gauge
0%
700.9 µs700.9 µs
bench6_1m
benches/bench/main.rs::encode::const_hex
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
bench3_2k
benches/bench/main.rs::format::const_hex
CodSpeed Performance Gauge
0%
9.1 µs9.1 µs
bench4_16k
benches/bench/main.rs::format::const_hex
CodSpeed Performance Gauge
0%
88.9 µs88.9 µs
bench1_32b
benches/bench/main.rs::check::const_hex
CodSpeed Performance Gauge
0%
401.7 ns401.7 ns
bench5_128k
benches/bench/main.rs::encode_to_slice::const_hex
CodSpeed Performance Gauge
0%
204.8 µs204.8 µs
bench4_16k
benches/bench/main.rs::encode_to_slice::const_hex
CodSpeed Performance Gauge
0%
26 µs26 µs
bench3_2k
benches/bench/main.rs::encode_to_slice::const_hex
CodSpeed Performance Gauge
0%
3.7 µs3.7 µs
bench2_256b
benches/bench/main.rs::encode_to_slice::const_hex
CodSpeed Performance Gauge
0%
915 ns915 ns
bench6_1m
benches/bench/main.rs::encode_to_slice::const_hex
CodSpeed Performance Gauge
0%
1.6 ms1.6 ms
bench3_2k
benches/bench/main.rs::decode::const_hex
CodSpeed Performance Gauge
0%
6.3 µs6.3 µs
bench3_2k
benches/bench/main.rs::check::const_hex
CodSpeed Performance Gauge
0%
2.8 µs2.8 µs
bench2_256b
benches/bench/main.rs::check::const_hex
CodSpeed Performance Gauge
-1%
660.3 ns664.2 ns
bench4_16k
benches/bench/main.rs::decode::const_hex
CodSpeed Performance Gauge
-1%
29.8 µs30 µs

Commits

Click on a commit to change the comparison range
Base
master
22291dc
-0.15%
refactor: propagate exact error index from scalar decode paths
eb0cdd1
2 months ago
by DaniPopes
0%
fmt
889f800
2 months ago
by DaniPopes
+11.98%
refactor: use CheckResult(isize) instead of Result<(), usize>
f73c872
2 months ago
by DaniPopes
© 2026 CodSpeed Technology
Home Terms Privacy Docs