chore: add marshall benchmark (#353)
This commit is contained in:
parent
4bd9b676c6
commit
1164ca55dd
17
tests/benchmarks/test_marshall.py
Normal file
17
tests/benchmarks/test_marshall.py
Normal 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)
|
||||
Loading…
x
Reference in New Issue
Block a user