/zarr-chunk-optimization:performance-reportingfrom zarr-chunk-optimization
Turns Zarr chunking benchmark results into ranked comparisons, recommendations, charts, and stakeholder reports. Includes performance bias scores and memory-budget checks.
Ships in zarr-chunk-optimization. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turns Zarr chunking benchmark results into a report that ranks chunk shapes and recommends one, using comparison tables, performance bias and memory-budget checks.
Core principle: every number in the report traces to a measured field. Unmeasured metrics (TTFB, chunk utilization, chunks read) stay out rather than being estimated.
chunking-strategy/scripts/benchmark_runner.py, or per-shape read times the user pasted) and need ranking, a recommendation, charts or a write-up.When NOT to use:
Top level: metadata (timestamp, platform, Python version, dimensions) and benchmarks, one entry per (chunk config, access pattern, dimension):
chunk_config, dataset, shape, num_runs, dim_index, dimension_nameaccess_pattern: slice reads one index of dimension_name and all of the rest (a map at one time step); traverse reads all of dimension_name at the middle index of every other dimension (a time series at one point).statistics.<metric> = {mean, std, min, max, values}, std with ddof=0. Metrics: wall_time (s), peak_memory_mb, throughput_mbps (MB/s of returned data), data_size_mb, dask_tasks, http_requests (0 for local stores).error instead of statistics: that run failed. List it in the report.ttfb and chunk_utilization are hardcoded to None: absent from statistics, or, in older runners, the cause of every entry failing with unsupported operand type(s) for +: 'NoneType' and 'NoneType'. That error is a runner bug, not a bad configuration, and leaves nothing to report.
Check before ranking:
chunk_config is only a label, and it reads dataset with its stored chunks. Several configs sharing one dataset path measured the same layout, so their differences are noise. Stop and ask for one run per rechunked store.(access_pattern, dimension_name) to the user's workload names, e.g. ("slice", "time") is a map and ("traverse", "time") is a time series. By default the runner tests both patterns on every dimension. Keep only the ones the workload uses.num_runs ≥ 5.| Quantity | Definition | Note |
|---|---|---|
Pattern time T_p | statistics.wall_time.mean | Report as mean ± std |
| Peak memory | max of peak_memory_mb.max over a config's entries, / 1024 for GB | Python-heap peak per read, not RSS: a lower bound |
| Performance bias (PB) | max_p T_p / min_p T_p over the kept patterns | Unweighted, as in Nguyen et al. (2023); n/a with one pattern |
| Composite score | Σ w_p T_p, weights normalized to sum to 1 | Expected seconds per operation; equal weights by default |
| Noisy | std / mean > 0.3 | Re-run with more runs; don't drop the config |
| Tie | mean ± std ranges overlap | Confirm with Welch's t-test on values if it decides the pick |
PB classes (plugin heuristics, not from the paper): < 1.5 Balanced, 1.5–3 Moderate, 3–10 Biased, > 10 Extreme.
T_p alone when one pattern dominates.For code that loads runner JSON, rejects shared-store or missing-pattern input, and computes these quantities, see Loading Runner Output.
| Mistake | Fix |
|---|---|
Weighted PB max(w·T) / min(w·T) | Mixes workload shares into balance: under 70/30 weights a config with equal times scores 2.33. Use weights only in the composite score |
| PB over all of the runner's patterns | PB over the workload's patterns only |
Sorting formatted strings ("12.50" < "2.64") | Sort numbers; format only when rendering |
| Methodology says sample std, OS cache cleared between runs, or several warm-ups | Runner: population std, fsspec cache cleared before each run, OS cache only if cleared by hand, 1 warm-up (--warmup is not passed through) |
Dataset summary, environment, comparison table, per-pattern tables, PB summary, recommendations, methodology (with failed entries). Formatting and examples: references/report-generation.md. Charts: references/visualization-patterns.md. Templates: comparison table, recommendations.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (uw-ssec/savvy) — no native marketplace selected
npx claudepluginhub p/uw-ssec-zarr-chunk-optimization-plugins-zarr-chunk-optimization5 skills in this plugin
/access-pattern-analysisUse when choosing or benchmarking Zarr chunk shapes and the read workload is not yet written down; when a user describes their work informally ("I make maps", "I pull time series at stations", "I look at spectra"); when several teams or workflows share one dataset and need relative weights; or when reads are slow and the chunk layout may not match how the data is read./chunking-strategyUse when choosing or tuning Zarr chunk shapes for a multi-dimensional scientific array on S3, GCS or local disk, when map reads or time-series reads from a Zarr store are slow or run out of memory, or when comparing candidate chunk configurations by wall-clock time, peak memory or performance bias (Nguyen et al. 2023) before rechunking./rechunkingOther plugins' skills for the same job