Replies: 3 comments 1 reply
-
|
👍🏻 专业! |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
交互形式可能是像 react-scan 的浮层 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
这个目前有加入到ci中吗,有参考可用的benchmark度量逻辑么 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
本方案提出一个基于 Playwright Component Testing 的标准化流式 Markdown 渲染性能基准测试,通过统一接口、标准数据集和自动化指标采集,填补前端生态在增量渲染场景下缺乏可量化、可复现性能评估工具的空白,支持 CI 集成与技术选型。
Motivation
随着 AI 应用/现代 Web 应用对实时性和用户体验的要求不断提高,流式渲染(streaming rendering) 技术逐渐成为主流,尤其是在渲染 Markdown 这类轻量级标记语言时。
然而,目前业界缺乏统一标准来衡量不同实现方案在流式渲染场景下的性能表现。这导致:
核心能力
建立一套标准化、可重复的测试方法,用于衡量和比较不同 Markdown 流式渲染实现的关键性能指标,如:
本 Benchmark 可集成至 CI/CD 流程,用于性能回归检测、技术选型评估及优化方向验证。
Detailed Design
流式渲染定义
“流式”在此指:Markdown 内容按时间分块(chunk)逐步到达前端,并在不阻塞 UI 的前提下增量渲染。典型场景包括:
Benchmark 指标
测试输入设计
标准测试集:预定义多个 Markdown 样本,覆盖:
Chunking 策略
固定字节数(如每 50 字符);
按 token(模拟 LLM);
按语义边界(如句子结束)。
测试执行环境
组件工程设计
Example Usage
基础使用
性能指标采集
0 votes ·
Beta Was this translation helpful? Give feedback.
All reactions