matlab-write-performance-tests
Installation
SKILL.md
Writing MATLAB Performance Tests
Write performance tests for MATLAB code using the matlab.perftest.TestCase framework. This framework provides statistically rigorous timing with automatic warmup, multiple samples, and outlier handling.
When to Use
- User wants to write repeatable performance tests for their MATLAB code
- User needs to benchmark functions with statistical confidence
- User wants to detect performance regressions over time
- User is setting up continuous performance monitoring
- User asks how to use
runperformatlab.perftest.TestCase
When NOT to Use
- User wants a quick one-off timing (use
timeitinstead — seematlab-optimize-performance) - User wants to optimize existing code (use
matlab-optimize-performance) - User wants to measure memory usage (use
matlab-optimize-memory) - User wants to profile code to find bottlenecks (use
matlab-optimize-performance, Step 2)