Bluetooth-Devices
bluetooth-data-tools
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
perf(distance): use ** operator and drop * 1.0 idiom
#269
Merged
Comparing
bluetoothbot:koan/distance-pow-to-pow-operator
(
1c61714
) with
main
(
967cc9f
)
CodSpeed Performance Gauge
+10%
Improvement
1
Untouched
34
Different runtime environments detected
Some benchmarks with significant performance changes were compared across different runtime environments, which may affect the accuracy of the results.
Learn more about regression causes
.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
35 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_calculate_distance_meters_far
tests/benchmarks/test_calculate_distance_meters.py
CodSpeed Performance Gauge
+13%
21.5 µs
19 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_calculate_distance_meters_close
tests/benchmarks/test_calculate_distance_meters.py
CodSpeed Performance Gauge
+6%
21.9 µs
20.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_parse_int_to_bluetooth_address_cached
tests/benchmarks/test_int_to_bluetooth_address.py
CodSpeed Performance Gauge
+1%
11.9 µs
11.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_parse_int_to_bluetooth_address_uncached
tests/benchmarks/test_int_to_bluetooth_address.py
CodSpeed Performance Gauge
+1%
11.8 µs
11.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_newest_manufacturer_data_single
tests/benchmarks/test_newest_manufacturer_data.py
CodSpeed Performance Gauge
+1%
16.2 µs
16 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_resolve_private_address_non_rpa
tests/benchmarks/test_resolve_private_address.py
CodSpeed Performance Gauge
+1%
22.6 µs
22.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_parse_advertisement_16bit_uuid_list
tests/benchmarks/test_parse_gap_uuid_lists.py
CodSpeed Performance Gauge
+1%
22.9 µs
22.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_parse_advertisement_data_tuple_bytes_cache_fallthrough
tests/benchmarks/test_parse_gap_tuple.py
CodSpeed Performance Gauge
+1%
39.3 µs
39.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_manufacturer_data_to_raw_long
tests/benchmarks/test_manufacturer_data_to_raw.py
CodSpeed Performance Gauge
0%
15.9 µs
15.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_calculate_distance_meters_zero
tests/benchmarks/test_calculate_distance_meters.py
CodSpeed Performance Gauge
0%
11.3 µs
11.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_parse_advertisement_data_bytes
tests/benchmarks/test_parse_gap_bytes.py
CodSpeed Performance Gauge
0%
12.8 µs
12.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_uint128_bytes_as_uuid_cached
tests/benchmarks/test_uint128_bytes_as_uuid.py
CodSpeed Performance Gauge
0%
13.5 µs
13.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_newest_manufacturer_data_multi
tests/benchmarks/test_newest_manufacturer_data.py
CodSpeed Performance Gauge
0%
15.9 µs
15.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_resolve_private_address_mismatch
tests/benchmarks/test_resolve_private_address.py
CodSpeed Performance Gauge
0%
88.5 µs
88.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_parse_advertisement_mixed_uuid_lists
tests/benchmarks/test_parse_gap_uuid_lists.py
CodSpeed Performance Gauge
0%
29.3 µs
29.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_parse_advertisement_data_tuple_uncached
tests/benchmarks/test_parse_gap_tuple.py
CodSpeed Performance Gauge
0%
65.1 µs
65 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_parse_advertisement_data_tuple_bytes
tests/benchmarks/test_parse_gap_bytes.py
CodSpeed Performance Gauge
0%
63.4 µs
63.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_mac_to_int_cached
tests/benchmarks/test_mac_to_int.py
CodSpeed Performance Gauge
0%
11.7 µs
11.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_uint16_int_as_uuid_cached
tests/benchmarks/test_uint16_int_as_uuid.py
CodSpeed Performance Gauge
0%
12 µs
12 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_parse_advertisement_32bit_uuid_list
tests/benchmarks/test_parse_gap_uuid_lists.py
CodSpeed Performance Gauge
0%
20.3 µs
20.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_parse_advertisement_data_bytes_cache_fallthrough
tests/benchmarks/test_parse_gap.py
CodSpeed Performance Gauge
0%
74 µs
74.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_manufacturer_data_to_raw_short
tests/benchmarks/test_manufacturer_data_to_raw.py
CodSpeed Performance Gauge
0%
15.7 µs
15.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_parse_advertisement_single_tuple
tests/benchmarks/test_parse_gap.py
CodSpeed Performance Gauge
0%
14.4 µs
14.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_human_readable_name_with_name
tests/benchmarks/test_human_readable_name.py
CodSpeed Performance Gauge
0%
22.7 µs
22.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_parse_advertisement_data_tuple
tests/benchmarks/test_parse_gap.py
CodSpeed Performance Gauge
0%
16.7 µs
16.8 µs
1
2
Commits
Click on a commit to change the comparison range
Base
main
967cc9f
+9.65%
perf(distance): use ** operator and drop * 1.0 idiom
1c61714
14 days ago
by bluetoothbot
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs