* chore(pre-commit.ci): pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.0 → v0.11.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.0...v0.11.0) * chore(pre-commit.ci): auto fixes * chore: fix violations --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@koston.org>
19 lines
426 B
Python
19 lines
426 B
Python
from pytest_codspeed import BenchmarkFixture
|
|
|
|
from dbus_fast import Message
|
|
|
|
message = Message(
|
|
destination="org.bluez",
|
|
path="/",
|
|
interface="org.freedesktop.DBus.ObjectManager",
|
|
member="GetManagedObjects",
|
|
)
|
|
|
|
|
|
def test_marshall_bluez_get_managed_objects_message(
|
|
benchmark: BenchmarkFixture,
|
|
) -> None:
|
|
@benchmark
|
|
def marhsall_bluez_get_managed_objects_message():
|
|
message._marshall(False)
|