Runs comprehensive chunking benchmarks on Zarr datasets, sampling data, testing candidate configs, and generating a performance report with recommendations.
How this command is triggered — by the user, by Claude, or both
Slash command
/zarr-chunk-optimization:benchmarkThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /benchmark - Comprehensive Chunking Benchmarking Run complete benchmarking workflow: sample or generate data, test candidate chunk configurations, measure performance across access patterns, generate report with recommendations based on Nguyen et al. (2023) methodology. ## Usage ## What This Command Does 1. Reads dataset metadata or generates synthetic data 2. Asks about access patterns if not specified (use **access-pattern-profiler** skill if user is unsure) 3. Generates candidate chunk configurations varying one dimension at a time 4. Samples data to manageable size for benchmark...
Run complete benchmarking workflow: sample or generate data, test candidate chunk configurations, measure performance across access patterns, generate report with recommendations based on Nguyen et al. (2023) methodology.
# Benchmark existing dataset
/benchmark s3://bucket/data.zarr
# Benchmark with specific access patterns
/benchmark /data/local.zarr --patterns spatial,time-series
# Benchmark with candidate configurations
/benchmark s3://bucket/data.zarr --configs "10,256,256" "50,512,512" "100,1024,1024"
# Benchmark with memory budget constraint
/benchmark /data/climate.zarr --memory-budget 8GB
# Generate synthetic data and benchmark
/benchmark --synthetic --shape 1000,2048,2048 --dims time,lat,lon
.agents/benchmark-report-[name]-[timestamp].md--synthetic flag used)Required: Either dataset path OR --synthetic flag
Dataset path formats:
/data/mydata.zarrs3://bucket/path/to/data.zarrgs://bucket/path/to/data.zarrAccess patterns: User describes workflow; agent translates to spatial/time-series/spectral patterns
--patterns PATTERNS — Comma-separated list (spatial, time-series, spectral, all). Default: all
--configs CONFIGS — Space-separated chunk shapes in format "t,f,b". Auto-generated if not provided.
--memory-budget SIZE — Maximum acceptable peak memory (e.g., "8GB"). Flags configs exceeding limit.
--runs N — Runs per configuration per pattern. Minimum 5, default 10.
--synthetic — Generate synthetic test data (requires --shape and --dims)
--shape SHAPE — Shape for synthetic data (comma-separated integers)
--dims DIMS — Dimension names for synthetic data (comma-separated strings)
--sample-size SIZE — Elements to sample from first dimension for very large datasets
purge, Linux: drop_caches).agents/ directory with timestamp/tradeoffs to explore, use /rechunk to applynpx claudepluginhub uw-ssec/rse-plugins --plugin zarr-chunk-optimization/hatch3r-benchmarkRuns performance benchmarks against a target (file, function, endpoint, or suite), compares against baselines, identifies regressions, and produces structured reports.
/perfRuns a structured, evidence-driven performance investigation with baselines, profiling, and reproducible benchmarks across multiple phases.
/xarray-for-multidimensional-dataReads, analyzes, and processes labeled multidimensional arrays (NetCDF, Zarr, HDF5) using Xarray with Dask support for large datasets.
/flow-performance-optimizationOrchestrates systematic performance optimization flow: baseline establishment, bottleneck identification, optimization, load testing, and SLO validation. Accepts trigger, component, guidance, and interactive modes.
/performance-optimizationOrchestrates end-to-end performance optimization for an application or service, running profiling, analysis, and monitoring. Supports --focus and --depth flags.