Skip to content
Development
Skill

/benchmark-model-runtime

Benchmark model runtimes across latency, throughput, memory, energy, load time, size, and stability. Use when comparing Core AI, Core ML, MLX, ExecuTorch, PyTorch, quantization, devices, or packaging.

From plugin
socket
9200 skills5 MCP

Claude Code

$ npx -y skills add gaelic-ghost/socket --skill benchmark-model-runtime --agent claude-code

SKILL.md

benchmark-model-runtime.SKILL.md
name: benchmark-model-runtime
description: Benchmark model runtimes across latency, throughput, memory, energy, load time, size, and stability. Use when comparing Core AI, Core ML, MLX, ExecuTorch, PyTorch, quantization, devices, or packaging.

Benchmark Model Runtime

Define A Fair Workload

Pin the exact model artifact, tokenizer/template, runtime and version, device and OS, precision, cache policy, batch size, prompt-length buckets, generated-token target, sampling settings, and measurement tool. Compare numerical or behavioral parity before performance.

Workflow

1. Verify each artifact produces acceptable outputs on the same small parity set. 2. Separate cold load, warm load, prompt processing, time to first token, decode throughput, and end-to-end latency. 3. Measure peak and steady memory; include model, cache, runtime, and process overhead consistently. 4. Stabilize device power, charging, background load, and thermal state. Record deviations instead of silently rerunning only slow samples. 5. Warm up separately, then run enough measured repetitions to report median and tail percentiles. 6. Sweep representative prompt lengths, output lengths, and batch/concurrency levels. 7. Record failures, fallback execution, recompilation, memory pressure, and thermal throttling. 8. Measure energy with an appropriate system tool when the decision depends on battery or sustained deployment. 9. Retain raw samples and summarize them with units, sample counts, and uncertainty.

Apple Runtime Checks

  • Confirm delegated operator coverage and fallback behavior rather than assuming the named backend ran the whole graph.
  • Distinguish compilation/conversion time from load and inference time.
  • For stateful generation, include key-value cache initialization, update, and memory growth.
  • Treat ExecuTorch MLX results as revision-specific while the upstream backend remains experimental.

References

Use `references/runtime-benchmarking.md` for metric definitions and reporting requirements.

Read more
@gaelic-ghost
Ships withsocket

Stuff for Agents on macOS Promo audio: Socket Codex Marketplace Promo

9200 skills5 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9
Star history of gaelic-ghost/socket on GitHub, a chart by star-history.com

Other skills on socket.

orchestrate-agent-work

orchestrate-agent-work

Coordinate bounded worker tasks with a launch envelope, report-back, escalation, and synthesis contract. Use before spawning,…

@gaelic-ghost@gaelic-ghostInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about benchmark-model-runtime.

Which coding agents can use benchmark-model-runtime?
benchmark-model-runtime installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.