modify:安装步骤说明

This commit is contained in:
2025-08-08 18:15:29 +08:00
parent 480f27b430
commit 38e7cb55fe
3 changed files with 15 additions and 1 deletions
+12
View File
@@ -30,6 +30,18 @@ class TestStress:
# print(f"callback: {message_item.expire_time}")
# print(f"callback: {message_item.tags}")
@classmethod
def test_example(cls):
message_item = MessageItem(content={"num": 1}, destination="example")
start_time = time.perf_counter()
example(message_item)
print(f"测试函数:斐波那契数列")
print(f"总耗时: {time.perf_counter() - start_time:.4f}秒")
start_time = time.perf_counter()
for i in range(10000):
example(message_item)
print(f"总耗时: {time.perf_counter() - start_time:.4f}秒")
@classmethod
def test_stress(cls):
TASK_NUM = 10000