modify:安装步骤说明

This commit is contained in:
chakcy 2025-08-08 18:15:29 +08:00
parent 480f27b430
commit 38e7cb55fe
3 changed files with 15 additions and 1 deletions

View File

@ -182,8 +182,10 @@ SQLite 开发文件
```bash
cd src/core
maturin develop
maturin develop --release
```
将会在 `src/core/target/release` 目录下生成 `core.dll``core.so` 文件。
将该文件复制到 `queue_sqlite/core` 目录下dll文件需改名为pyd后缀
4. 运行测试:

BIN
requirements.txt Normal file

Binary file not shown.

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