BobTheBuidler
faster-hexbytes
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf: optimize HexBytes slice fast-path
#70
Merged
Comparing
codex/hexbytes-slice-fastpath
(
40fbb38
) with
master
(
f70c90b
)
CodSpeed Performance Gauge
+11%
Improvement
1
Untouched
618
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
619 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(None,None)-b'a'*1024]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+11%
344.3 µs
310.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(-3,None)-ascii sentence]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
296.8 µs
276.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(2,None)-b'a'*1024]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
336.5 µs
314 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(1,6)-b'\\x01'*100]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
301.2 µs
281.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(2,None)-b'\\x00\\xff\\x00\\xff']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
296.3 µs
276.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(1,6)-b'\\x01'*2048]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
300.3 µs
280.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(1,6)-b'abc']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
300.6 µs
280.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(1,6)-b'\\xde\\xad\\xbe\\xef']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
300.5 µs
280.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(None,None)-4-byte pattern]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
292.8 µs
273.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(0,3)-b'\\x00\\xff\\x00\\xff']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
300.2 µs
280.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(None,None)-all byte values]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
292.8 µs
273.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(-3,None)-repeated 0-9]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
295.9 µs
276.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(-3,None)-4-byte pattern]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
295.9 µs
276.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(-3,None)-0-9]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
295.9 µs
276.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(-3,None)-b'abc']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
296.2 µs
276.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(2,None)-b'\\xde\\xad\\xbe\\xef']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
295.9 µs
276.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(-3,None)-b'\\x01'*2048]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
295.9 µs
276.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(-3,None)-long alternating]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
295.9 µs
276.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(-3,None)-single 0xff]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
283.4 µs
265 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(2,None)-palindrome]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
295.4 µs
276.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(-3,None)-b'\\x10\\x20\\x30\\x40\\x50']
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
295.9 µs
276.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(-3,None)-multiples of 0x10]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
295.8 µs
276.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(-3,None)-palindrome ascii]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
295.9 µs
276.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(2,None)-palindrome ascii]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
295.7 µs
276.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_faster_hexbytes_getitem_slice[slice(-3,None)-mixed pattern]
benchmarks/test_main_benchmarks.py
CodSpeed Performance Gauge
+7%
295.8 µs
276.6 µs
1
2
3
4
5
...
25
Commits
Click on a commit to change the comparison range
Base
master
f70c90b
+10.87%
Merge branch 'master' into codex/hexbytes-slice-fastpath
40fbb38
3 months ago
by BobTheBuidler
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs