From b0557364394726d89529f20fc10f158e59441341 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 13 Dec 2023 11:27:52 +0100 Subject: [PATCH] rename benchmarks for blog post --- cmdeploy/src/cmdeploy/tests/online/benchmark.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmdeploy/src/cmdeploy/tests/online/benchmark.py b/cmdeploy/src/cmdeploy/tests/online/benchmark.py index 13aac3e0..18481979 100644 --- a/cmdeploy/src/cmdeploy/tests/online/benchmark.py +++ b/cmdeploy/src/cmdeploy/tests/online/benchmark.py @@ -39,22 +39,22 @@ class TestDC: ac1, ac2 = cmfactory.get_online_accounts(2) chat = cmfactory.get_accepted_chat(ac1, ac2) - def ping_pong(): + def dc_ping_pong(): chat.send_text("ping") msg = ac2.wait_next_incoming_message() msg.chat.send_text("pong") ac1.wait_next_incoming_message() - benchmark(ping_pong, 5) + benchmark(dc_ping_pong, 5) def test_send_10_receive_10(self, benchmark, cmfactory, lp): ac1, ac2 = cmfactory.get_online_accounts(2) chat = cmfactory.get_accepted_chat(ac1, ac2) - def send_10_receive_10(): + def dc_send_10_receive_10(): for i in range(10): chat.send_text(f"hello {i}") for i in range(10): ac2.wait_next_incoming_message() - benchmark(send_10_receive_10, 5) + benchmark(dc_send_10_receive_10, 5)