| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## master #1773 +/- ##
=======================================
Coverage 99.77% 99.77%
=======================================
Files 33 33
Lines 3536 3536
Branches 498 498
=======================================
Hits 3528 3528
Misses 5 5
Partials 3 3 ☔ View full report in Codecov by Harness.
|
Sorry, something went wrong.
Merging this PR will not alter performance✅ 14 untouched benchmarks Performance Changes
Comparing bluetoothbot:koan/bench-ipaddress-creation (433dd40) with master (cb81e67) |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
What
Add CodSpeed benchmarks for ZeroconfIPv4Address / ZeroconfIPv6Address construction and hashing.
Why
get_ip_address_object_from_record builds one of these objects per A/AAAA record on a cache miss, and the objects are hashed when stored in sets/dicts. There is currently no benchmark guarding the construction or hash cost of this hot path, so regressions (or improvements) go unmeasured.
This establishes the baseline before a follow-up that reworks how the per-instance hash is cached.
How
Four benchmarks under tests/benchmarks/test_ipaddress.py:
Testing
SKIP_CYTHON=1 poetry run pytest tests/benchmarks/test_ipaddress.py -v — 4 passed. ruff + ruff-format clean.