Agent SkillsLanlan13-14/zephyr › benchmark

benchmark

GitHub

用于在 xterm.js 项目中运行和编写基准测试,支持全套件、单文件或单用例执行,指导选择 RuntimeCase 或 ThroughputRuntimeCase。

xterm/.agents/skills/benchmark/SKILL.md Lanlan13-14/zephyr

触发场景

编辑基准测试文件 处理 *.benchmark.ts 文件 询问如何运行基准测试

安装

npx skills add Lanlan13-14/zephyr --skill benchmark -g -y
更多选项

非标准路径

npx skills add https://github.com/Lanlan13-14/zephyr/tree/main/xterm/.agents/skills/benchmark -g -y

不安装直接使用

npx skills use Lanlan13-14/zephyr@benchmark

指定 Agent (Claude Code)

npx skills add Lanlan13-14/zephyr --skill benchmark -a claude-code -g -y

安装 repo 全部 skill

npx skills add Lanlan13-14/zephyr --all -g -y

预览 repo 内 skill

npx skills add Lanlan13-14/zephyr --list

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
  • Single context/case:
    • Use -t to get the path, then:
    • npm run benchmark -- -s "<path>" out-test/benchmark/Event.benchmark.js

Benchmark Case Selection

When writing benchmark instructions:

  • Use RuntimeCase to measure pure runtime in ms.
  • Use ThroughputRuntimeCase when 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).

版本历史

  • 2924af0 当前 2026-07-24 16:54

同 Skill 集合

xterm/.agents/skills/unit-test/SKILL.md

元信息

文件数
0
版本
8928d8b
Hash
fb801b36
收录时间
2026-07-24 16:54

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-17 20:00
浙ICP备14020137号-1