Avatar for the Bluetooth-Devices user
Bluetooth-Devices
cached-ipaddress
BlogDocsChangelog

perf: cache __repr__ on IPv4/IPv6 addresses

#123
Comparing
bluetoothbot:koan/cache-repr
(
51a3a45
) with
main
(
527706b
)
CodSpeed Performance Gauge
+1%
Untouched
26
New
2

Benchmarks

28 total
test_repr_performance_ipv6
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
N/A
N/A13.5 µs
test_repr_performance
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
N/A
N/A13.7 µs
test_eq_performance_hit
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+7%
14.5 µs13.6 µs
test_is_loopback_performance
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+2%
11.1 µs10.9 µs
test_compressed_performance_ipv6
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+2%
11.1 µs10.9 µs
test_is_reserved_performance
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
11.1 µs11 µs
test_is_unspecified_performance
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
11.2 µs11 µs
test_exploded_performance
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
11.2 µs11.1 µs
test_reverse_pointer_performance
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
11.2 µs11.1 µs
test_is_global_performance_ipv6
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
11.1 µs11 µs
test_is_multicast_performance
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
11.1 µs11 µs
test_is_global_performance
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
11.4 µs11.3 µs
test_hash_performance
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
15 µs14.9 µs
test_is_private_performance_ipv6
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
11.1 µs11 µs
test_exploded_performance_ipv6
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
11.2 µs11.1 µs
test_compressed_performance
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
11.2 µs11.1 µs
test_str_performance_ipv6
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
13.4 µs13.3 µs
test_is_multicast_performance_ipv6
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
+1%
11.1 µs11 µs
test_is_private_performance
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
0%
11 µs11 µs
test_reverse_pointer_performance_ipv6
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
0%
11.1 µs11.1 µs
test_is_loopback_performance_ipv6
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
0%
11.3 µs11.3 µs
test_eq_performance_miss
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
0%
15.6 µs15.6 µs
test_hash_performance_ipv6
tests/benchmarks/test_ipaddress.py
CodSpeed Performance Gauge
0%
14.9 µs14.9 µs

Commits

Click on a commit to change the comparison range
Base
main
527706b
+0.92%
perf: cache __repr__ on IPv4/IPv6 addresses
51a3a45
3 days ago
by bluetoothbot
© 2026 CodSpeed Technology
Home Terms Privacy Docs