matlab-write-performance-tests

Official

Benchmark MATLAB code with statistical rigor.

Authormatlab
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Writing trustworthy MATLAB performance tests is hard because naive timing (or poorly structured tests) produces noisy, non-reproducible results that mask real regressions.

Core Features & Use Cases

  • Statistically rigorous benchmarking using matlab.perftest.TestCase with warmup, multiple samples, and outlier handling.
  • Proper measurement boundaries via keepMeasuring for fast code, or startMeasuring/stopMeasuring to isolate exactly what you want timed.
  • Correct parameterization patterns using MethodSetupParameter for values consumed during setup, plus guidance to avoid common MATLAB perf-test gotchas.
  • Best-practice test design including RNG seeding, avoiding setup inside the measured region, and using local variables to reduce measurement overhead.

What problem does it solve?

Aizes performance-test development for MATLAB code by generating clean, repeatable benchmark classes that work well with runperf and matlab.perftest.TestCase.

Quick Start

Use this skill to write a matlab.perftest.TestCase performance test for your function, benchmark it across multiple input sizes, and run it with runperf to get median timing and regression-ready results.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: matlab-write-performance-tests
Download link: https://github.com/matlab/matlab-agentic-toolkit/archive/main.zip#matlab-write-performance-tests

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.