BobTheBuidler
faster-hexbytes
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf: optimize hexstr_to_bytes prefix check
#75
Merged
Comparing
prefix-check
(
7a60d82
) with
master
(
df1c636
)
CodSpeed Performance Gauge
+61%
Improvement
31
Untouched
588
No successful run was found on
master
(
b15b54f
) during the generation of this report, so
df1c636
was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
619 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+61%
73.8 µs
45.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0x']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+60%
75 µs
46.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_to_bytes['0x']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+57%
78.4 µs
50 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_to_bytes['']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+56%
77.2 µs
49.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_new['0x']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+19%
183.8 µs
154.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_new['']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+19%
182.2 µs
153.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['deadbeef']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+14%
102.8 µs
89.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_to_bytes['deadbeef']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+14%
106.3 µs
93.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0x1234']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+13%
114.6 µs
101.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0xabcdef']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+13%
115.2 µs
101.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0xdeadbeef']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+13%
115.6 µs
102.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0xCAFEBABE']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+13%
115.5 µs
102.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_to_bytes['0x1234']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+13%
118.2 µs
104.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_to_bytes['0xCAFEBABE']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+13%
119.2 µs
105.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_to_bytes['0xdeadbeef']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+13%
119.2 µs
105.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_to_bytes['0xabcdef']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+13%
118.7 µs
105.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0x1']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+12%
123.4 µs
109.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0x0']
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+12%
123.3 µs
109.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0x'+'00ff'*16]
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+12%
131.3 µs
117.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0x'+'facefeed'*8]
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+12%
131.2 µs
117.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0x'+'ff00'*16]
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+12%
131.3 µs
117.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0x'+'cafebabe'*8]
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+11%
131.2 µs
117.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0x'+'dead'*16]
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+11%
131.2 µs
117.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0x'+'beef'*16]
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+11%
131.2 µs
117.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexstr_to_bytes['0x'+'1'*64]
benchmarks/test__utils_benchmarks.py
CodSpeed Performance Gauge
+11%
131.2 µs
117.8 µs
1
2
3
4
5
...
25
Commits
Click on a commit to change the comparison range
Base
master
df1c636
+60.58%
perf: optimize hexstr_to_bytes prefix check
7a60d82
3 months ago
by BobTheBuidler
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs