mindspore-ai/akg/performance-summary

Claude Code and agent skill by mindspore-ai/akg

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

用于汇总和对比多个算子的性能测试结果。当用户请求汇总多个算子的性能结果、对比算子 benchmark、生成性能报告、分析多个 kernel 的加速比时使用此 Skill。

Install

npx vskill@latest install mindspore-ai/akg/performance-summary

SKILL.md

The same SKILL.md was published earlier as mindspore-ai/akg/performance-summary.

性能汇总

汇总和对比多个算子的性能指标。

工作流程

  1. 收集性能数据
  • 使用 read_file 读取各算子的 verify_<op_name>/result.json
  • 提取关键指标:latency_ms, throughput, memory_usage_mb, speedup
  1. 生成对比表格

```

算子延迟 (ms)吞吐量内存 (MB)加速比
relu0.1510001282.3x

```

  1. 分析结果
  • 找出最优/最差的算子
  • 标注性能异常点
  • 提出优化目标
  1. 生成报告

使用模板:## 测试环境 → ## 性能对比 → ## 分析 → ## 优化建议

数据位置

性能结果存储在验证目录中:

  • verify_<op_name>/result.json - 主要结果
  • verify_<op_name>/profiling.json - 详细性能分析(如有)

关键指标

指标说明
latency_ms单次执行延迟(毫秒)
throughput每秒操作数
speedup相对基准(torch)的加速比
memory_usage_mb峰值内存占用(MB)

示例

用户: "帮我汇总 relu 和 sigmoid 算子的性能"

Agent 执行:

  1. 调用 read_file("verify_relu/result.json")
  2. 调用 read_file("verify_sigmoid/result.json")
  3. 提取指标,构建对比表格
  4. 生成汇总和优化建议

脚本调用

可使用 scripts/collect_metrics.py 批量收集并打印性能汇总:

python
from collect_metrics import collect_metrics, print_results
# 打印格式化的性能汇总结果
print_results()

Skill 验证

使用 --verify 参数验证当前 skill 是否可用:

bash
python scripts/collect_metrics.py --verify

验证内容包括:

  • SKILL.md 文件是否存在且格式正确
  • 核心函数是否可调用
  • 依赖模块是否可用
  • 模拟执行测试

输出示例:

============================================================
性能汇总结果
============================================================
| Operator | Latency (ms) | Throughput | Memory (MB) | Speedup | Correct |
|----------|--------------|------------|-------------|---------|---------|
| matmul | 1.234 | 5000 | 256.0 | 1.80x | ✅ |
| relu | 0.150 | 10000 | 128.0 | 2.30x | ✅ |
| sigmoid | 0.180 | 8000 | 128.0 | 2.10x | ✅ |
============================================================

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
259
Repository forks
48
7-day trend score
28

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Oct 2026, a month ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mindspore-ai/akg/performance-summary/badge)](https://verified-skill.com/skills/mindspore-ai/akg/performance-summary)

Something wrong with this skill or its page? Tell us.