Agent SkillsLanlan13-14/zephyr › benchmark

benchmark

GitHub

指导在 xterm.js 中运行和编写基准测试,涵盖全套件、单文件及用例执行命令,以及 RuntimeCase 的使用说明。

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

Trigger Scenarios

编辑 *.benchmark.ts 文件 询问如何运行完整基准测试套件 询问如何运行单个基准测试文件或用例

Install

npx skills add Lanlan13-14/zephyr --skill benchmark -g -y
More Options

Non-standard path

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

Use without installing

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).

Version History

  • 2924af0 Current 2026-07-24 16:54

Same Skill Collection

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

Metadata

Files
0
Version
726f53c
Hash
fb801b36
Indexed
2026-07-24 16:54

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-18 05:02
浙ICP备14020137号-1 $mapa de visitantes$