performance-benchmarking
Design and run reproducible benchmarks.
Skill by Andrew G. Brown (https://github.com/brownag)
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/andrewbrown-usda-performance-benchmarking
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/performance-benchmarking
What's inside
- Skill name
performance-benchmarking- Description
- Design and run reproducible benchmarks. Use when measuring performance scaling, comparing branches, or analyzing speedup metrics.
- License
- MIT
- Metadata
- author: Andrew G. Brown (https://github.com/brownag) · version: 1 · source_path: skills/performance-benchmarking/SKILL.md · source_repo: aigb-skills
- Instructions
- 395 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (4)
- SKILL.md
- benchmark-template.R · references/
- benchmark-template.sh · references/
- speedup-metrics.md · references/
SKILL.md (first lines)
# Performance Benchmarking
Design and execute reproducible benchmarks to measure scaling, compare implementations, and analyze speedup.
## Quick Start
Test a function's scaling with parameter n:
```bash
# Save this as bench.R
benchmark_test <- function(n) {
# Setup test data
test_data <- seq(1, n)
# Warm-up (1 run, don't time)
sum(test_data)
# Timed runs (3 runs, report mean)
times <- c()
for (i in 1:3) {
t <- system.time(sum(test_data))[3]
times <- c(times, t)
}
mean(times)
}
# Run for scaling parameter
for (n in c(1000, 10000, 100000, 1000000)) {
t <- benchmark_test(n)
cat(sprintf("n=%d: %.4f s\n", n, t))
}
```
Run: `Rscript bench.R`
## Benchmark Anatomy
Every reproducible benchmark has these components:
### Warm-up Run
Run the function once before timing to stabilize JIT, caches, and memory allocation. Don't measure this run -- just let the system settle.
### Multiple Timed Runs
Execute the function >=3 times per configuration. Record all times, report mean and standard deviation. Single-run benchmarks are noise.
### Timeout Protection
Skip configurations that exceed 60 seconds per run. This prevents expensive branches (e.g., O(n^2) algorithms on master) from running excessively long tests.
```r
mean_time <- mean(times)
if (mean_time > 60) {
cat(sprintf("TIMEOUT: skipping n=%d (%.1f s/run)\n", n, mean_time))
next
}
```
### CSV Output
Save results to CSV for comparison across runs and branches:
```r
results <- data.frame(
param = param_values,
time_sec = timing_results
)
write.csv(results, "benchmark_results.csv", row.names = FALSE)
```
### Visualization
Generate plots for scaling analysis. Log-log plots reveal asymptotic behavior (O(n), O(n^2), etc.).
## Example 1: Hash Map Benchmarks
**Functions**: `classify()`, `subst()` -- value lookup and substitution **Parameter**: Lookup table size (n_lookup) **Expected scaling**: O(1) average with hash map, O(n^2) with nested loops
From archive `benchmark_hash.R` pattern:
```r
n_lookup_values <- c(10, 50, 100, 500, 1000, 5000, 10000)
results <- data.frame()
for (n_lookup in n_lookup_values) {
# Generate test data
r <- terra::rast(nrows=100, ncols=100, vals=sample(1:100, 10000, replace=TRUE))
from_vals <- sample(1:100, n_lookup, replace=FALSE)
to_vals <- seq(1000, 1000 + n_lookup - 1)
# Warm-up
terra::classify(r, cbind(from_vals, to_vals))
# Timed runs
times <- c()
for (i in 1:3) {
t <- system.time(terra::classify(r, cbind(from_vals, to_vals)))[3]
if (t > 60) break # Timeout check
times <- c(times, t)
}
if (length(times) > 0) {
results <- rbind(results, data.frame(
n_lookup = n_lookup,
mean_time = mean(times),
sd_time = sd(times)
))
}
}
# Plot log-log
png("scaling_plot.png", width=800, height=600)
plot(log(results$n_lookup), log(results$mean_time),
main="Hash Map Scaling",
xlab="log(n_lookup)", ylab="log(time_sec)",
pch=19, cex=1.5)
dev.off()
```
**Result interpretation**: Flat slope = O(1), 45 deg slope = O(n), steep slope = O(n^2).
## Example 2: Other Function BenchmarksFrom AndrewBrown-USDA/aigb-skills-usda, MIT.
More from AndrewBrown-USDA/aigb-skills-usda
- 0.629score
agent-onboarding
Andrew G. Brown (https://github.com/brownag)
Create and maintain AGENTS.md files for project onboarding and grounding.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
arcpy-migration
Andrew G. Brown (https://github.com/brownag)
Migrates ArcPy and ArcGIS Pro workflows to explicit, testable open-source Python geospatial workflows.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
dr-lexus
Andrew G. Brown (https://github.com/brownag)
Plain language directive.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
git-history-interval-study
Andrew G. Brown (https://github.com/brownag)
Incrementally studies git history across tagged or pattern-matched intervals (e.g., creation of planning artifacts like EXECUTION_PLAN_N.md, release tags, or…
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
install-skills
Andrew G. Brown (https://github.com/brownag)
Installs skills from aigb-skills into a coding agent's skill directory.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
makefile-development-workflow
Andrew G. Brown (https://github.com/brownag)
Standardizes Makefile-based build and test workflows with reproducible targets.
SkillAFreshness: A★ 7Claude Code +9 - 0.624score
deep-investigative-research
Andrew G. Brown (https://github.com/brownag)
Comprehensive investigation of complex multi-domain narratives (technology, theology, policy, finance).
SkillAFreshness: A★ 7Claude Code +9 - 0.624score
doc-consistency
Andrew G. Brown (https://github.com/brownag)
Normalizes documentation and examples for consistency in style, format, and accuracy.
SkillAFreshness: A★ 7Claude Code +9 - 0.624score
conventional-commits
Andrew G. Brown (https://github.com/brownag)
Create, classify, validate, and explain commit messages using Conventional Commits v1.0.0, with repository-aware type, scope, footer, and breaking-change…
SkillAFreshness: A★ 7Claude Code +9 - 0.624score
copilot-history-briefing
Andrew G. Brown (https://github.com/brownag)
Reads Copilot conversation history and extracts executive-ready success stories.
SkillAFreshness: A★ 7Claude Code +9 - 0.623score
json-processing-with-jq
Andrew G. Brown (https://github.com/brownag)
Processes JSON on the command line with jq.
SkillAFreshness: A★ 7Claude Code +9 - 0.621score
apply-fed-oss-license
Andrew G. Brown (https://github.com/brownag)
Audit and update an arbitrary codebase to follow the Code.mil federal open-source licensing model (MIT with 17 U.S.C.
SkillAFreshness: A★ 7Claude Code +9
Signals
- Stars
- 7
- Forks
- 4
- Open issues
- 1
- Last commit (this folder)
- Oct 14, 2026 (14 days ago)
- Last release
- Oct 23, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Andrew G. Brown (https://github.com/brownag)
- 0.629score
dr-lexus
Andrew G. Brown (https://github.com/brownag)
Plain language directive.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
install-skills
Andrew G. Brown (https://github.com/brownag)
Installs skills from aigb-skills into a coding agent's skill directory.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
agent-onboarding
Andrew G. Brown (https://github.com/brownag)
Create and maintain AGENTS.md files for project onboarding and grounding.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
arcpy-migration
Andrew G. Brown (https://github.com/brownag)
Migrates ArcPy and ArcGIS Pro workflows to explicit, testable open-source Python geospatial workflows.
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
git-history-interval-study
Andrew G. Brown (https://github.com/brownag)
Incrementally studies git history across tagged or pattern-matched intervals (e.g., creation of planning artifacts like EXECUTION_PLAN_N.md, release tags, or…
SkillAFreshness: A★ 7Claude Code +9 - 0.629score
makefile-development-workflow
Andrew G. Brown (https://github.com/brownag)
Standardizes Makefile-based build and test workflows with reproducible targets.
SkillAFreshness: A★ 7Claude Code +9
Cite this page
performance-benchmarking skill. Agent Mart. https://agentmart.dev/skills/andrewbrown-usda-performance-benchmarking (last updated 2026-10-24)