diff --git a/README.md b/README.md index f2cef74..a01312e 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,25 @@ English | [简体中文](README_ZH.md) - Theme switching - Automatic updates +## API Concurrency Stress Testing + +```bash +ab -p body.json -T application/json -c 20 -n 100 -l http://127.0.0.1:8000/chat/completions +``` + +body.json: + +```json +{ + "messages": [ + { + "role": "user", + "content": "Hello" + } + ] +} +``` + ## Todo - [ ] Model training functionality diff --git a/README_ZH.md b/README_ZH.md index fb6da76..2673b24 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -47,6 +47,25 @@ API兼容的接口,这意味着一切ChatGPT客户端都是RWKV客户端。 - 主题切换 - 自动更新 +## API并发压力测试 + +```bash +ab -p body.json -T application/json -c 20 -n 100 -l http://127.0.0.1:8000/chat/completions +``` + +body.json: + +```json +{ + "messages": [ + { + "role": "user", + "content": "Hello" + } + ] +} +``` + ## Todo - [ ] 模型训练功能