diff --git a/tests/benchmarks/test_marshall.py b/tests/benchmarks/test_marshall.py new file mode 100644 index 00000000..17d333f1 --- /dev/null +++ b/tests/benchmarks/test_marshall.py @@ -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)