summaryrefslogtreecommitdiff
path: root/scripts/python/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/python/README.md')
-rw-r--r--scripts/python/README.md11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/python/README.md b/scripts/python/README.md
index 8d8ed53..aaab4dc 100644
--- a/scripts/python/README.md
+++ b/scripts/python/README.md
@@ -106,7 +106,7 @@ write_message (small ~20B) 100 0 0.399 1.009
- `delete_message.session_id` は任意
- `inputSchema.required` とruntimeの必須条件が一致
- 成功・エラーの全応答がJSON-RPC 2.0形式で、Python MCP SDKから解釈可能
-- `read_messages` は現状フル履歴を返し、paginationは未実装
+- `read_messages` は既定100件・最大1000件で、`nextCursor`を追跡して全履歴を取得
未対応・確認していない項目:
@@ -122,5 +122,14 @@ Python MCP SDKでglobal/session-scoped検索を同一接続上で1000回交互ã�
.venv\Scripts\python.exe p0_regression.py --server ..\..\build\windows-vs2026\src\Release\tiny-convmem-mcp.exe
```
+## P2大規模履歴ベンチマーク
+
+```powershell
+.venv\Scripts\python.exe p2_benchmark.py --server ..\..\build\windows-vs2026\src\Release\tiny-convmem-mcp.exe --messages 10000 --sessions 1 --output p2_benchmark_10000x1.json
+.venv\Scripts\python.exe p2_benchmark.py --server ..\..\build\windows-vs2026\src\Release\tiny-convmem-mcp.exe --messages 50000 --sessions 100 --output p2_benchmark_50000x100.json
+```
+
+raw stdioで全ページを検証し、restart、rebuild、peak working set、最大応答byte数を記録します。
+
従来の約254リクエストでの切断は、Windowsの符号なし`SOCKET`でstdio sentinelを
ネットワーク接続と誤判定し、connection poolを消費していたことが原因でした。