Back to skills
SkillHub ClubShip Full StackFull Stack

benchmark-functions

Measure function performance and compare implementations. Use when optimizing critical code paths.

Packaged view

This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.

Stars
14
Hot score
86
Updated
March 20, 2026
Overall rating
C4.0
Composite score
4.0
Best-practice grade
A92.0

Install command

npx @skill-hub/cli install mvillmow-projectodyssey-benchmark-functions

Repository

mvillmow/ProjectOdyssey

Skill path: .claude/skills/tier-2/benchmark-functions

Measure function performance and compare implementations. Use when optimizing critical code paths.

Open repository

Best for

Primary workflow: Ship Full Stack.

Technical facets: Full Stack.

Target audience: everyone.

License: Unknown.

Original source

Catalog source: SkillHub Club.

Repository owner: mvillmow.

This is still a mirrored public skill entry. Review the repository before installing into production workflows.

What it helps with

  • Install benchmark-functions into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
  • Review https://github.com/mvillmow/ProjectOdyssey before adding benchmark-functions to shared team environments
  • Use benchmark-functions for development workflows

Works across

Claude CodeCodex CLIGemini CLIOpenCode

Favorites: 0.

Sub-skills: 0.

Aggregator: No.

Original source / Raw 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
---

# 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

```bash
# 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

1. **Set up benchmarks**: Create timing harness with warm-up iterations
2. **Run measurements**: Execute function multiple times, record timing
3. **Collect statistics**: Calculate mean, median, std deviation
4. **Compare baselines**: Compare against previous implementations
5. **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-code` skill for detailed performance profiling
- See `suggest-optimizations` skill for improvement strategies
- See CLAUDE.md > Performance for Mojo optimization guidelines
benchmark-functions | SkillHub