chore: add marshall benchmark (#353)

This commit is contained in:
J. Nick Koston 2025-01-07 12:38:20 -10:00 committed by GitHub
parent 4bd9b676c6
commit 1164ca55dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,17 @@
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)