test(terminal): add renderer bench smoke script

This commit is contained in:
zhangheng
2026-06-24 14:13:09 +08:00
parent f4c919de40
commit 21019d82e0
7 changed files with 465 additions and 3 deletions

View File

@@ -15,3 +15,22 @@ Then open:
- `http://127.0.0.1:3100/rustui/deep/nested`
Change `app_config/src/lib.rs` to test another base path.
## Terminal Renderer Bench
The terminal benchmark script connects to an already-running dev server; it does
not start or stop services.
Install the Node dependency and Chromium browser once before running it:
```bash
npm install
npx playwright install chromium
```
```bash
npm run terminal:bench -- --url http://127.0.0.1:3100/rustui/terminal
```
It writes `target/terminal-bench/terminal-bench.json` plus screenshots when
Playwright is available in the workspace.