Skip to content

Commit

Permalink
chore: add marshall benchmark (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Jan 7, 2025
1 parent 4bd9b67 commit 1164ca5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/benchmarks/test_marshall.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 1164ca5

Please sign in to comment.