agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Comprehensive performance analysis and optimization orchestrator with parallel benchmarking capabilities
How it fires
How this command gets triggered: by you, by Claude, or both.
/benchmarkContext preview
What this command does when you run it.
Comprehensive performance analysis and optimization orchestrator with parallel benchmarking capabilities
allowed-tools: Task, Bash(hyperfine:*), Bash(rg:*), Bash(fd:*), Bash(wrk:*), Bash(k6:*), Bash(perf:*), Bash(jq:*), Bash(gdate:*), Bash(cargo:*), Bash(go:*), Bash(mvn:*), Bash(deno:*), Bash(valgrind:*), Bash(time:*), Bash(docker:*), Bash(curl:*), Bash(psql:*), Bash(dragonfly-cli:*), Bash(stress:*), Read, Write name: "Benchmark" description: "Comprehensive performance analysis and optimization orchestrator with parallel benchmarking capabilities" author: "wcygan" tags: ["ops","perf"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize comprehensive performance analysis session
# Initialize benchmark session state
echo '{
"sessionId": "'$SESSION_ID'",
"target": "'$ARGUMENTS'",
"projectType": "auto-detect",
"benchmarkStrategy": "comprehensive",
"phases": ["baseline", "profiling", "optimization", "validation"],
"currentPhase": "baseline",
"results": {},
"recommendations": []
}' > /tmp/benchmark-session-$SESSION_ID.jsonSTEP 2: Adaptive benchmarking strategy with parallel execution
TRY:
CASE project_complexity: WHEN "simple_binary":
WHEN "multi_component_system":
WHEN "distributed_application":
**Parallel Performance Analysis (Sub-Agent Architecture):**
IF project_complexity == "complex" OR benchmark_scope == "comprehensive":
LAUNCH parallel sub-agents for multi-dimensional performance analysis:
**Sub-Agent Coordination:**
# Each agent reports findings to session state echo "Parallel performance analysis agents launched..." echo "Results will be aggregated for comprehensive optimization strategy"
STEP 3: Baseline performance measurement with intelligent detection
**Language-Specific Benchmarking:**
# Rust Performance Analysis
if fd "Cargo.toml" . | head -1 >/dev/null; then
echo "🦀 Rust project detected - comprehensive Rust benchmarking"
# Built-in benchmarks with detailed metrics
cargo bench --bench '*' -- --output-format json > /tmp/rust-bench-$SESSION_ID.json
# Release build optimization verification
cargo build --release --verbose
# Hyperfine analysis with statistical rigor
hyperfine --warmup 5 --runs 20 \
--export-json /tmp/rust-hyperfine-$SESSION_ID.json \
--parameter-scan threads 1 $(nproc) \
'RAYON_NUM_THREADS={threads} ./target/release/$(basename $PWD)' || \
hyperfine --warmup 5 --runs 20 './target/release/$(basename $PWD)'
# Memory profiling with Rust-specific tools
if command -v heaptrack >/dev/null; then
heaptrack ./target/release/$(basename $PWD) > /tmp/rust-memory-$SESSION_ID.log
fi
fi
# Go Performance Analysis
if fd "go.mod" . | head -1 >/dev/null; then
echo "🐹 Go project detected - comprehensive Go benchmarking"
# Built-in benchmarks with memory allocation tracking
go test -bench=. -benchmem -cpuprofiA lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies