| 1 | from pytest_codspeed import BenchmarkFixture |
| 2 | |
| 3 | from bluetooth_data_tools.utils import _mac_to_int, mac_to_int |
| 4 | |
| 5 | |
| 6 | def test_mac_to_int_uncached(benchmark: BenchmarkFixture) -> None: |
| 7 | benchmark(lambda: _mac_to_int("AA:BB:CC:DD:EE:FF")) |
| 8 | |
| 9 | |
| 10 | def test_mac_to_int_cached(benchmark: BenchmarkFixture) -> None: |
| 11 | benchmark(lambda: mac_to_int("AA:BB:CC:DD:EE:FF")) |