Agent Skills
› Lanlan13-14/zephyr
› benchmark
benchmark
GitHub指导在 xterm.js 中运行和编写基准测试,涵盖全套件、单文件及用例执行命令,以及 RuntimeCase 的使用说明。
Trigger Scenarios
编辑 *.benchmark.ts 文件
询问如何运行完整基准测试套件
询问如何运行单个基准测试文件或用例
Install
npx skills add Lanlan13-14/zephyr --skill benchmark -g -y
SKILL.md
Frontmatter
{
"name": "benchmark",
"description": "Run and author benchmark tests in xterm.js. Use when editing benchmark files, working in `*.benchmark.ts`, or when asked how to run the full benchmark suite, a single benchmark file, or a single benchmark case."
}
Benchmark Run Instructions
Running Benchmarks
- Full suite:
npm run benchmark - Single benchmark file:
- Tree:
npm run benchmark -- -t out-test/benchmark/Event.benchmark.js - Run file:
npm run benchmark -- -s "out-test/benchmark/Event.benchmark.js" out-test/benchmark/Event.benchmark.js
- Tree:
- Single context/case:
- Use
-tto get the path, then: npm run benchmark -- -s "<path>" out-test/benchmark/Event.benchmark.js
- Use
Benchmark Case Selection
When writing benchmark instructions:
- Use
RuntimeCaseto measure pure runtime in ms. - Use
ThroughputRuntimeCasewhen measuring throughput in MB/s.
Notes
- Benchmarks run from built JS in
out-test/benchmark/*.benchmark.js. - Keep
NODE_PATH=./out(handled by the npm script).
Version History
- 2924af0 Current 2026-07-24 16:54


