18 lines
425 B
Python
18 lines
425 B
Python
from dbus_fast import Message
|
|
from pytest_codspeed import BenchmarkFixture
|
|
|
|
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)
|