/pup:dd-gpu-benchmarksfrom pup
Load-tests OpenAI-compatible inference endpoints with AIPerf, manages benchmark runs, and compares latency/throughput results. Useful for capacity planning and regression testing of LLM deployments.
Ships in pup. 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.
None: SKILL.md is the whole skill.
Load-test an OpenAI-compatible inference endpoint with AIPerf, from Datadog's benchmark cluster or your own Kubernetes cluster, and read the results. Use this skill to answer "how fast is my endpoint?", "did this change make it faster?", and "how many concurrent users can it serve within my latency targets?".
This requires the pup binary in your path.
pup - cargo install --git https://github.com/DataDog/pup
pup auth login --extra-scopes gpu_benchmarks_read,gpu_benchmarks_write,gpu_benchmarks_run
gpu_benchmarks_read reads benchmarks and runs, gpu_benchmarks_write creates and edits them, and gpu_benchmarks_run starts and cancels runs and sweeps.
Runs and sweeps send real traffic to the endpoint, and can load a production model server for up to the benchmark's max_duration_seconds (10 minutes by default). Before runs start or sweeps start:
--idempotency-key. If the command fails or times out, retry with the same key: it returns the run it already started instead of starting a second one.pup gpu benchmarks list
pup gpu benchmarks list --deployment-name llama-70b-vllm --deployment-env prod
pup gpu benchmarks get <benchmark-id>
pup gpu benchmarks runs list <benchmark-id>
Check the endpoint first. This sends one chat completion and saves nothing:
cat > endpoint.json <<'EOF'
{"url": "https://llm-gateway.example.com/v1", "model": "meta-llama/Llama-3.1-70B-Instruct", "streaming": true,
"headers": [{"name": "Authorization", "value": "Bearer <token>"}]}
EOF
pup gpu benchmarks test-connection --file endpoint.json
Then create the benchmark. endpoint is required; everything else has defaults:
cat > benchmark.json <<'EOF'
{
"name": "llama-70b chat, 32 users",
"endpoint": {"url": "https://llm-gateway.example.com/v1", "model": "meta-llama/Llama-3.1-70B-Instruct", "streaming": true,
"headers": [{"name": "Authorization", "value": "Bearer <token>"}]},
"workload": {"concurrency": 32, "request_count": 1000, "warmup_request_count": 32,
"input_tokens": {"mean": 1024, "stddev": 0}, "output_tokens": {"mean": 256, "stddev": 0}},
"targets": {"ttft_ms": 500, "itl_ms": 50},
"deployment": {"source": "vllm", "tag_key": "service", "name": "llama-70b-vllm", "env": "prod"}
}
EOF
pup gpu benchmarks create --file benchmark.json
location is {"type": "datadog"} by default. Use {"type": "cluster", "orch_cluster_id": "<id>"} to run from your own cluster, for endpoints that are not reachable from the internet.deployment links the benchmark to a model deployment of the GPU Monitoring Inference page, so its runs show there.update replaces workload, targets and deployment whole. Changing the workload makes later runs not comparable with earlier ones.pup gpu benchmarks runs start <benchmark-id> --idempotency-key vllm-0.6.3-upgrade
pup gpu benchmarks runs wait <run-id> --timeout 30m
wait returns once the run is completed, failed, invalid, timeout or cancelled. Check status and reason before reading results.
runs get and runs wait return the run with its summary once results are recorded:
ttft_ms and itl_ms: time to first token and inter-token latency, with p50, p90, p99, mean and std, in milliseconds.successful_request_count: the requests behind the means and standard deviations.output_token_throughput, total_token_throughput (tokens/s) and request_throughput (requests/s).good_request_fraction: the share of requests within the benchmark's targets. It is absent without targets.The run also has snapshots of what it ran: endpoint, workload, targets, deployment, and deployment_config (engine, version, GPUs, parallelism, KV cache) captured when it started and ended.
endpoint, workload and targets in both snapshots. If deployment_config differs, that difference is what you are measuring (for example a new engine version).(new - old) / old. For latencies lower is better; for throughputs higher is better.mean, std and successful_request_count:
se = sqrt(std_a² / n_a + std_b² / n_b) and t = |mean_a - mean_b| / se.t > 1.96 (with more than about 100 requests per run).A sweep runs the benchmark once per concurrency level. It needs the benchmark to have targets.
# The highest concurrency where at least 95% of requests meet the targets
pup gpu benchmarks sweeps start <benchmark-id> --kind search --max-concurrency 64 --idempotency-key capacity-1
# Throughput and latency at fixed levels
pup gpu benchmarks sweeps start <benchmark-id> --kind curve --concurrency-levels 1,4,16,32,64
pup gpu benchmarks sweeps get <sweep-id>
sweeps get returns steps (concurrency, status, passed, summary for each) and the result: found with the concurrency, reached_max when every level passed, or none when even the lowest failed. A sweep runs its steps one after another, so it takes several run durations. Poll sweeps get rather than waiting on each run.
| HTTP | Meaning |
|---|---|
| 403 | Missing gpu_benchmarks_* permission or OAuth scope. Re-run pup auth login with the extra scopes above. |
| 404 | Not found in this org, or not available on this site. |
| 409 | A run or sweep is already active on the benchmark, or it cannot be deleted while one is active. |
| 422 | The definition is invalid; the error names the field. |
| 429 | Over the org's run quota or the API rate limit. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gpu-benchmarks, llm-inference, load-testing, aaiperf, datadog
13 skills in this plugin
/dd-apmAPM - traces, services, dependencies, performance analysis./dd-code-generationDatadog Integration SkillUse pup CLI for immediate Datadog operations or generate code for integration into applications/dd-debuggerLive Debugger - inspect runtime argument/variable values in production by placing log probes on methods. Use when asked what values a function receives, what parameters look like at runtime, or to capture live data from running services without redeploying./dd-docsDatadog docs lookup using docs.datadoghq.com/llms.txt and linked Markdown pages./dd-file-issueFile GitHub issues to the right repository (pup CLI or plugin)/dd-idpFind, filter, count, and connect software, teams, engineering work and delivery, infrastructure, and operational or security records through Pup's read-only Datadog entity graph. Use for inventory, ownership, dependencies, and status questions across connected integrations and custom entities. Discover available kinds, fields, and relationships progressively when no recipe fits.npx claudepluginhub datadog/pup --plugin pupOther plugins' skills for the same job