from pytest_codspeed import BenchmarkFixture

from bluetooth_data_tools.utils import _mac_to_int, mac_to_int


def test_mac_to_int_uncached(benchmark: BenchmarkFixture) -> None:
    benchmark(lambda: _mac_to_int("AA:BB:CC:DD:EE:FF"))


def test_mac_to_int_cached(benchmark: BenchmarkFixture) -> None:
    benchmark(lambda: mac_to_int("AA:BB:CC:DD:EE:FF"))
