Avatar for the Bluetooth-Devices user
Bluetooth-Devices
bluetooth-data-tools
BlogDocsChangelog

perf(gap): route parse_advertisement_data misses through bytes cache

#264Closed
Comparing
bluetoothbot:koan/symmetric-parse-bytes-cache
(
835d1ff
) with
main
(
bd5e91e
)
CodSpeed Performance Gauge
+65%
Improvement
2
Regression
1
Untouched
32

Benchmarks

35 total
test_parse_advertisement_data_bytes
tests/benchmarks/test_parse_gap_bytes.py
CodSpeed Performance Gauge
-15%
12.8 µs15.1 µs
test_parse_advertisement_data_tuple_uncached
tests/benchmarks/test_parse_gap_tuple.py
CodSpeed Performance Gauge
×3.4
65.1 µs19.1 µs
test_parse_advertisement_data_bytes_cache_fallthrough
tests/benchmarks/test_parse_gap.py
CodSpeed Performance Gauge
×2.7
73.9 µs27.4 µs
test_parse_advertisement_data_tuple
tests/benchmarks/test_parse_gap_tuple.py
CodSpeed Performance Gauge
+1%
15.4 µs15.3 µs
test_parse_advertisement_single_tuple
tests/benchmarks/test_parse_gap.py
CodSpeed Performance Gauge
+1%
14.5 µs14.4 µs
test_uint128_bytes_as_uuid_cached
tests/benchmarks/test_uint128_bytes_as_uuid.py
CodSpeed Performance Gauge
+1%
13.5 µs13.4 µs
test_short_address_dash
tests/benchmarks/test_short_address.py
CodSpeed Performance Gauge
0%
20.3 µs20.2 µs
test_resolve_private_address_non_rpa
tests/benchmarks/test_resolve_private_address.py
CodSpeed Performance Gauge
0%
22.3 µs22.2 µs
test_parse_advertisement_data_tuple_bytes_cache_fallthrough
tests/benchmarks/test_parse_gap_tuple.py
CodSpeed Performance Gauge
0%
38.9 µs38.8 µs
test_parse_advertisement_mixed_uuid_lists
tests/benchmarks/test_parse_gap_uuid_lists.py
CodSpeed Performance Gauge
0%
29.4 µs29.3 µs
test_resolve_private_address_mismatch
tests/benchmarks/test_resolve_private_address.py
CodSpeed Performance Gauge
0%
88.5 µs88.4 µs
test_resolve_private_address_match
tests/benchmarks/test_resolve_private_address.py
CodSpeed Performance Gauge
0%
93.2 µs93.1 µs
test_short_address_colon
tests/benchmarks/test_short_address.py
CodSpeed Performance Gauge
0%
19.7 µs19.7 µs
test_parse_advertisement_32bit_uuid_list
tests/benchmarks/test_parse_gap_uuid_lists.py
CodSpeed Performance Gauge
0%
20.4 µs20.4 µs
test_uint128_bytes_as_uuid_uncached
tests/benchmarks/test_uint128_bytes_as_uuid.py
CodSpeed Performance Gauge
0%
27.1 µs27.1 µs
test_parse_int_to_bluetooth_address_cached
tests/benchmarks/test_int_to_bluetooth_address.py
CodSpeed Performance Gauge
0%
11.9 µs11.9 µs
test_parse_int_to_bluetooth_address_uncached
tests/benchmarks/test_int_to_bluetooth_address.py
CodSpeed Performance Gauge
0%
11.7 µs11.7 µs
test_newest_manufacturer_data_multi
tests/benchmarks/test_newest_manufacturer_data.py
CodSpeed Performance Gauge
0%
15.9 µs15.9 µs
test_parse_advertisement_16bit_uuid_list
tests/benchmarks/test_parse_gap_uuid_lists.py
CodSpeed Performance Gauge
0%
22.8 µs22.8 µs
test_parse_advertisement_128bit_uuid_list
tests/benchmarks/test_parse_gap_uuid_lists.py
CodSpeed Performance Gauge
0%
20.4 µs20.4 µs
test_newest_manufacturer_data_single
tests/benchmarks/test_newest_manufacturer_data.py
CodSpeed Performance Gauge
0%
16.1 µs16.1 µs
test_human_readable_name_with_name
tests/benchmarks/test_human_readable_name.py
CodSpeed Performance Gauge
0%
14.6 µs14.6 µs
test_parse_advertisement_data_tuple_bytes
tests/benchmarks/test_parse_gap_bytes.py
CodSpeed Performance Gauge
0%
63.3 µs63.5 µs
test_calculate_distance_meters_far
tests/benchmarks/test_calculate_distance_meters.py
CodSpeed Performance Gauge
0%
18.8 µs18.9 µs
test_parse_advertisement_data_tuple
tests/benchmarks/test_parse_gap.py
CodSpeed Performance Gauge
0%
16.6 µs16.6 µs

Commits

Click on a commit to change the comparison range
Base
main
bd5e91e
+64.68%
refactor(gap): rename _uncached_parse_advertisement_data/_tuple to reflect bytes-cache routing
835d1ff
13 days ago
by bluetoothbot
© 2026 CodSpeed Technology
Home Terms Privacy Docs