← Back to list

benchmark-functions
by mvillmow
Training framework written in Mojo
⭐ 11🍴 4📅 Jan 24, 2026
SKILL.md
name: benchmark-functions description: "Measure function performance and compare implementations. Use when optimizing critical code paths." mcp_fallback: none category: analysis tier: 2 user-invocable: false
Benchmark Functions
Systematically measure function execution time, memory usage, and performance characteristics to identify optimization opportunities.
When to Use
- Comparing different algorithm implementations
- Measuring performance before/after optimization
- Profiling SIMD vs scalar implementations
- Establishing performance baselines for CI/CD
Quick Reference
# Python benchmarking with timeit
python3 -m timeit -s 'import module' 'module.function(args)' -n 1000 -r 5
# Mojo benchmarking with built-in timing
mojo run benchmark_script.mojo
Workflow
- Set up benchmarks: Create timing harness with warm-up iterations
- Run measurements: Execute function multiple times, record timing
- Collect statistics: Calculate mean, median, std deviation
- Compare baselines: Compare against previous implementations
- Identify bottlenecks: Pinpoint functions needing optimization
Output Format
Benchmark report:
- Function name and parameters tested
- Execution time statistics (mean, median, min, max)
- Memory usage (if applicable)
- Comparison to baseline (improvement percentage)
- Iterations and sample size used
References
- See
profile-codeskill for detailed performance profiling - See
suggest-optimizationsskill for improvement strategies - See CLAUDE.md > Performance for Mojo optimization guidelines
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon