agentsclimarketplace

Perf reviewer

Skill 8-bit-sheep/code-harness-skills/skills/perf-reviewer

Review code for performance issues and run benchmarks. Use when user asks to analyze performance, run benchmarks, or review code for optimization opportunities.From its SKILL.md

Install
npx -y skills add 8-bit-sheep/code-harness-skills --skill perf-reviewer

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.1 KB, as published. Nobody here has run it

Performance Reviewer

Review code for performance issues and run benchmarks.

Configuration

Environment VariableDefaultDescription
BUILD_CMDmake buildCommand to build the project
TEST_CMDmake testCommand to run tests
BENCHMARK_CMDmake benchCommand to run benchmarks

Quick Start

# Run benchmarks
scripts/benchmark.sh

# Run specific benchmark
scripts/benchmark.sh fibonacci

# Review code for performance issues
# Just ask: "review this code for performance"

When to Use This Skill

Invoke this skill when:

  • User asks to "benchmark" or "compare performance"
  • User asks to "review for performance" or "optimize"
  • User mentions "slow", "performance", "bottleneck"
  • After implementing compute-intensive code
  • Before releases to verify no performance regressions

Available Scripts

scripts/benchmark.sh [benchmark_name]

Run benchmarks comparing different implementations or configurations.

Available benchmarks: fibonacci, sum, all

Output: Timing comparisons, speedup ratios, and recommendations.

Workflow

1. Performance Review (Code Analysis)

When reviewing code, check against these principles (see resources/principles.md):

Critical checks:

  1. Algorithmic complexity - Is there an O(n log n) solution for O(n^2) code?
  2. Batch operations - Can multiple operations be combined?
  3. Memory allocation - Are allocations inside hot loops?
  4. Data layout - Are frequently-accessed fields colocated?

Quick checklist:

[ ] No O(n^2) where O(n log n) exists
[ ] Batch APIs for repeated operations
[ ] Allocations hoisted outside loops
[ ] Hot paths optimized, edge cases separate
[ ] No unnecessary string formatting in loops

2. Benchmarking

# Full benchmark suite
scripts/benchmark.sh all

# Single benchmark
scripts/benchmark.sh fibonacci

3. Profiling

Use your language's profiling tools to identify actual bottlenecks before optimizing.

Performance Principles Summary

From resources/principles.md:

PrincipleAction
Profile FirstMeasure before optimizing
Algorithms > Micro-optsO(n) beats optimized O(n^2)
Batch OperationsAmortize overhead
Memory LayoutCache-friendly structures
Fast PathOptimize common case
Defer WorkLazy evaluation
Right-size DataAppropriate containers

Resources

Notes

  • Always profile real workloads, not just microbenchmarks
  • Focus on algorithmic improvements before micro-optimizations
  • Document performance characteristics for future reference

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.