Avatar for the recmo user
recmo
uint
BlogDocsChangelog

perf: specialize hot paths for common sizes

#559Closed
Comparing
DaniPopes:dani/perf-optimizations
(
75444af
) with
main
(
c147f59
)
CodSpeed Performance Gauge
-14%
Improvement
81
Regression
1
Untouched
304

Benchmarks

386 total
pow/128
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
-14%
64.9 µs75.6 µs
parse/binary/4096/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×32
77.9 ms2.4 ms
parse/octal/4096/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×26
25,998.1 µs991.8 µs
parse/hex/4096/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×24
19,585.4 µs828.7 µs
parse/decimal/4096/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×14
23.5 ms1.6 ms
fmt/hex/4096
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×7.7
4,519.7 µs584.9 µs
parse/decimal/512/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×7.5
52.4 ms7 ms
parse/decimal/384/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×6.1
31.9 ms5.2 ms
parse/binary/512/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×5.7
171.4 ms30.3 ms
parse/decimal/256/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×4.8
16.1 ms3.3 ms
parse/decimal/192/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×4.7
10.4 ms2.2 ms
parse/octal/512/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×4.6
57.7 ms12.5 ms
parse/binary/384/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×4.6
104.1 ms22.8 ms
parse/hex/512/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×4.3
44.5 ms10.4 ms
parse/decimal/128/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×3.9
6.3 ms1.6 ms
parse/octal/384/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×3.8
35.1 ms9.3 ms
parse/decimal/64/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×3.8
2,895.3 µs770.7 µs
parse/hex/64/zero
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×3.5
467.5 µs134 µs
parse/hex/384/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×3.5
27.3 ms7.8 ms
fmt/octal/4096
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×3.5
4.4 ms1.3 ms
parse/binary/256/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×3.4
51.7 ms15.2 ms
parse/binary/64/zero
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×3.3
467.5 µs139.6 µs
parse/octal/64/zero
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×3.2
467.5 µs148 µs
parse/decimal/64/zero
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×3.2
467.5 µs148 µs
parse/binary/192/max
benches/bench.rs::benches::benches::group
CodSpeed Performance Gauge
×2.9
33.5 ms11.4 ms

Commits

Click on a commit to change the comparison range
Base
main
c147f59
-29.84%
perf: specialize hot paths for common sizes
52a8393
3 days ago
by DaniPopes
+15.71%
perf: revert cmp U256 specialization, use push_byte in fmt
75444af
3 days ago
by DaniPopes
© 2026 CodSpeed Technology
Home Terms Privacy Docs