chore: add TinyTUI benchmark pressure scenarios
- add benchmark project for rendering text overlay markdown and image-line paths - document benchmark usage in README - include benchmark project in solution
This commit is contained in:
@@ -94,6 +94,16 @@ dotnet pack src/TinyTUI/TinyTUI.csproj --configuration Release --no-build
|
||||
|
||||
`test/TinyTUI.Tests` 是正式 xUnit 回归测试项目。`test/TinyTUI.TextChecks` 和 `test/TinyTUI.ComponentChecks` 是早期最小 smoke check,后续会逐步收敛到正式测试项目。
|
||||
|
||||
## 压力示例
|
||||
|
||||
仓库提供不依赖真实终端交互的 benchmark/pressure console 项目,用于观察渲染管线在典型高压输入下是否稳定。
|
||||
|
||||
```powershell
|
||||
dotnet run --project benchmark/TinyTUI.Benchmarks/TinyTUI.Benchmarks.csproj --configuration Release
|
||||
```
|
||||
|
||||
当前场景覆盖大文本测量和截断、Markdown render、overlay compose、差分渲染频繁刷新,以及 Kitty/iTerm2 图像行检测保护。该项目会写出每个场景的耗时、分配量和关键计数,只作为本地观察入口,不替代 xUnit 回归测试,也不作为默认 CI test gate。
|
||||
|
||||
## 调试
|
||||
|
||||
渲染器支持环境变量调试日志:
|
||||
|
||||
Reference in New Issue
Block a user