Avatar for the BobTheBuidler user
BobTheBuidler
evmspec
BlogDocsChangelog

perf: speed up uint parsing from bytes

#255
Comparing
perf/uint-from-bytes-20260128011620
(
3591061
) with
master
(
4cac4a5
)
CodSpeed Performance Gauge
-14%
Regression
15
Untouched
230
Skipped
20

Benchmarks

265 total
test_uints_construct[uint16-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-18%
237.2 ms289.9 ms
test_uints_construct[uint24-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-17%
240.4 ms289.6 ms
test_uints_construct[uint32-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-17%
242.5 ms291.1 ms
test_uints_construct[uint40-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-16%
245.1 ms292.1 ms
test_uints_construct[uint48-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-15%
246.6 ms291.8 ms
test_uints_construct[uint8-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-15%
235.7 ms277.6 ms
test_uints_construct[uint56-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-15%
249.5 ms292.9 ms
test_uints_construct[uint64-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-14%
251 ms293.3 ms
test_uints_construct[uint72-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-14%
253.1 ms293.8 ms
test_uints_construct[uint80-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-13%
256.7 ms293.4 ms
test_uints_construct[uint88-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-12%
257.1 ms293.8 ms
test_uints_construct[uint96-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-12%
260.2 ms295 ms
test_uints_construct[uint104-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-11%
261.5 ms295.5 ms
test_uints_construct[uint112-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-11%
264.1 ms295.9 ms
test_uints_construct[uint120-max]
benchmarks/test_uints_benchmarks.py
CodSpeed Performance Gauge
-10%
266.5 ms296.8 ms
test_hexbytes32_construct[hexstr]
benchmarks/test_hexbytes_benchmarks.py
CodSpeed Performance Gauge
+1%
335.3 ms332.3 ms
test_hexbytes32_new_function[hexstr]
benchmarks/test_hexbytes_benchmarks.py
CodSpeed Performance Gauge
+1%
314.9 ms312.1 ms
test_hexbytes32_construct[all-zero]
benchmarks/test_hexbytes_benchmarks.py
CodSpeed Performance Gauge
+1%
335.4 ms333 ms
test_hexbytes32_new_function[address-topic]
benchmarks/test_hexbytes_benchmarks.py
CodSpeed Performance Gauge
+1%
315.1 ms312.8 ms
test_hexbytes32_new_function[all-zero]
benchmarks/test_hexbytes_benchmarks.py
CodSpeed Performance Gauge
+1%
314.9 ms312.8 ms
test_hexbytes32_construct[address-topic]
benchmarks/test_hexbytes_benchmarks.py
CodSpeed Performance Gauge
+1%
335.5 ms333.3 ms
test_hexbytes32_construct[hexstr-no-prefix]
benchmarks/test_hexbytes_benchmarks.py
CodSpeed Performance Gauge
+1%
256.5 ms255 ms
test_decode_hook[safe-hexbytes]
benchmarks/test_decode_hook_benchmarks.py
CodSpeed Performance Gauge
+1%
82.7 ms82.3 ms
test_address_decode_hook[precompile-9]
benchmarks/test_address_benchmarks.py
CodSpeed Performance Gauge
0%
222.9 ms222 ms
test_decode_hook[unsafe-hexbytes]
benchmarks/test_decode_hook_benchmarks.py
CodSpeed Performance Gauge
0%
82.8 ms82.5 ms

Commits

Click on a commit to change the comparison range
Base
master
4cac4a5
-19.87%
perf: parse uint bytes faster for quicker decoding
39a9a43
4 months ago
by BobTheBuidler
+5.78%
Merge branch 'master' into perf/uint-from-bytes-20260128011620
3591061
6 days ago
by BobTheBuidler
© 2026 CodSpeed Technology
Home Terms Privacy Docs