Avatar for the BobTheBuidler user
BobTheBuidler
evmspec
BlogDocsChangelog

perf: speed up uint parsing from bytes

#255
Comparing
perf/uint-from-bytes-20260128011620
(
39a9a43
) with
master
(
741003b
)
CodSpeed Performance Gauge
-20%
Regression
18
Untouched
227
Skipped
20

Benchmarks

265 total
test_uints_construct[uint16-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-20%
230.7 ms287.9 ms
test_uints_construct[uint24-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-19%
232.2 ms288.3 ms
test_uints_construct[uint32-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-19%
234.2 ms288.6 ms
test_uints_construct[uint40-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-18%
236.2 ms289 ms
test_uints_construct[uint8-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-18%
227.7 ms277.7 ms
test_uints_construct[uint48-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-18%
238.3 ms289.3 ms
test_uints_construct[uint56-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-17%
241 ms289.6 ms
test_uints_construct[uint64-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-16%
242.7 ms290.1 ms
test_uints_construct[uint72-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-15%
245.1 ms289.5 ms
test_uints_construct[uint80-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-15%
246.8 ms290 ms
test_uints_construct[uint88-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-14%
248.8 ms290.8 ms
test_uints_construct[uint96-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-14%
251.3 ms292.7 ms
test_uints_construct[uint104-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-13%
253.9 ms292.5 ms
test_uints_construct[uint112-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-12%
256.2 ms292.8 ms
test_uints_construct[uint120-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-12%
257.6 ms293.3 ms
test_uints_construct[uint128-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-11%
260.4 ms293.8 ms
test_uints_construct[uint136-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-11%
262.4 ms294 ms
test_uints_construct[uint144-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-11%
263.9 ms294.9 ms
test_address_checksum_internal[zero]
benchmarks/test_address_benchmarks.py
CodSpeed Performance Gauge
+1%
190.5 ms188.5 ms
test_address_checksum_internal[lower]
benchmarks/test_address_benchmarks.py
CodSpeed Performance Gauge
+1%
189.9 ms188.1 ms
test_address_checksum_internal[checksummed]
benchmarks/test_address_benchmarks.py
CodSpeed Performance Gauge
+1%
190.5 ms188.7 ms
test_trace_type_enum[call-str-delegatecall]
benchmarks/test_enum_benchmarks.py
CodSpeed Performance Gauge
+1%
58.2 ms57.7 ms
test_trace_type_enum[reward-str-block]
benchmarks/test_enum_benchmarks.py
CodSpeed Performance Gauge
+1%
58.2 ms57.7 ms
test_address_checksum[precompile-9]
benchmarks/test_address_benchmarks.py
CodSpeed Performance Gauge
+1%
207.6 ms206.1 ms
test_hexbytes32_getitem_slice[prefix-4-hash]
benchmarks/test_hexbytes_benchmarks.py
CodSpeed Performance Gauge
+1%
906.1 ms899.7 ms

Commits

Click on a commit to change the comparison range
Base
master
741003b
-19.87%
perf: parse uint bytes faster for quicker decoding
39a9a43
2 days ago
by BobTheBuidler
© 2026 CodSpeed Technology
Home Terms Privacy Docs