julia-performance

Installation
SKILL.md

Julia Performance Optimization

Apply optimizations in this order — measure first, then fix.

Step 1: Measure before optimizing

using BenchmarkTools

@btime my_function(args...)        # quick measurement
@benchmark my_function(args...)    # full stats with distribution

Key fields in @benchmark output:

  • median time — use median, not mean (robust to outliers)
  • allocs — high alloc count suggests type instability
  • memory estimate — unexpectedly large → unnecessary array copies

Step 2: Fix type instability

Installs
8
First Seen
Mar 7, 2026
julia-performance — hanafsky/julia-skills