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 instabilitymemory estimate— unexpectedly large → unnecessary array copies