# Perf test flagos

> Perf test flagos is an open-source agent skill for developer tools. Benchmarks a served LLM with vLLM across five workload profiles and reports latency. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/flagos-ai/skills/tree/main/skills/perf-test-flagos
- **Repository:** https://github.com/flagos-ai/skills
- **GitHub stars:** 22
- **License:** Apache-2.0
- **Skill name:** perf-test-flagos
- **Collection:** https://github.com/flagos-ai/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill starts a vLLM server for a target model inside a container, then runs a set of performance benchmarks using vllm bench serve. The benchmark suite covers short and long prompt and output combinations along with a high-concurrency case, and collects throughput, latency, time-to-first-token and time-per-output-token figures for each profile.

The workflow copies helper Python scripts into the container, runs every profile even if one fails, saves per-profile JSON results to an output directory and produces a combined summary table. The server is shut down at the end. An accuracy stage based on FlagEval is present in the skill but is currently a placeholder and is reported as skipped.

It expects a running container with the serving stack installed, the model path, tensor-parallel size and stack configuration, which an earlier model verification step normally supplies. It is written around Docker, bash and Python 3 with vLLM available in the container.

## When your agent uses it

> Run accuracy benchmarks (FlagEval, when available) and performance benchmarks (vllm bench serve) against a served model. Covers 5 workload profiles: short/long prefill x short/long decode + high concurrency. Collects throughput, latency, TTFT, TPOT metrics.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/flagos-ai/skills/tree/HEAD/skills/perf-test-flagos)
- [Asks for: Bash(*), Read, Edit, Write, Glob, Grep, WebSearch, WebFetch…](https://github.com/flagos-ai/skills/blob/HEAD/skills/perf-test-flagos/SKILL.md)
- [No network calls found in its scripts](https://github.com/flagos-ai/skills/tree/HEAD/skills/perf-test-flagos)
- [Includes binary files](https://github.com/flagos-ai/skills/tree/HEAD/skills/perf-test-flagos)
- [License: Apache-2.0](https://github.com/flagos-ai/skills/tree/HEAD/skills/perf-test-flagos)

## Features

- **Five workload profiles:** Covers short and long prefill combined with short and long decode, plus a high-concurrency run.
- **Latency and throughput metrics:** Collects request rate, token rate, TTFT, TPOT and P99 latency for each profile.
- **Automated server lifecycle:** Starts the vLLM server, waits for health checks and stops it after the benchmarks finish.
- **Fault-tolerant profile runs:** A failing profile is recorded and the remaining profiles still run, with timeouts applied.
- **Structured report output:** Produces JSON per profile and a combined status report with a markdown summary table.
- **Accuracy stage placeholder:** The FlagEval accuracy section is outlined but not yet implemented and is marked as skipped.

## Good for

- Measure throughput and latency of a model served with vLLM
- Compare performance across short and long prompt workloads
- Check how a model behaves under high concurrent request load
- Generate a summary table of benchmark results for a model run

## Install

### Claude Code

This skill ships in the `flagos-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add flagos-ai/skills
/plugin install flagos-skills@flagos-skills
```

Or copy only this skill to `~/.claude/skills/perf-test-flagos`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/perf-test-flagos &&
cp -R "$tmp/skills/perf-test-flagos" ~/.claude/skills/perf-test-flagos &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/perf-test-flagos` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/perf-test-flagos` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/perf-test-flagos &&
cp -R "$tmp/skills/perf-test-flagos" ~/.agents/skills/perf-test-flagos &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/perf-test-flagos` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/perf-test-flagos` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/perf-test-flagos &&
cp -R "$tmp/skills/perf-test-flagos" ~/.cursor/skills/perf-test-flagos &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/perf-test-flagos` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/flagos-ai/skills.git --path skills/perf-test-flagos
```

Or copy the folder to `~/.gemini/skills/perf-test-flagos` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/perf-test-flagos`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/perf-test-flagos &&
cp -R "$tmp/skills/perf-test-flagos" ~/.copilot/skills/perf-test-flagos &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/perf-test-flagos` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/flagos-ai/skills.git
```

Then copy `skills/skills/perf-test-flagos` into your agent's skills folder as `perf-test-flagos`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Perf test flagos runs?

A running container with the software stack installed, the model path, tensor-parallel size and stack configuration, normally taken from a prior model verification step.

### Which metrics does Perf test flagos collect?

Throughput, latency, time to first token, time per output token and P99 latency for each workload profile.

### Does the accuracy test work yet?

No. The FlagEval accuracy section is a placeholder and is reported as skipped until the client is available.

### What happens if one benchmark profile fails?

The error is reported and the remaining profiles continue to run.

### How do I install Perf test flagos in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/perf-test-flagos to use it in all your projects, or to .claude/skills/perf-test-flagos in one project. Or install the flagos-skills plugin, which includes it: /plugin marketplace add flagos-ai/skills, then /plugin install flagos-skills@flagos-skills.

### Does Perf test flagos run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Perf test flagos?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Perf test flagos?

The closest alternatives to Perf test flagos are Jetson LLM benchmark, Vllm plugin fl setup flagos, LLM evals, LLM observability and Benchmark checklist.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Jetson LLM benchmark](https://ai-powered.com/skills/jetson-llm-benchmark): Jetson LLM benchmark is an open-source agent skill for ai models and llm tooling.
- [Vllm plugin fl setup flagos](https://ai-powered.com/skills/vllm-plugin-fl-setup-flagos): Vllm plugin fl setup flagos is an open-source agent skill for developer tools.
- [LLM evals](https://ai-powered.com/skills/llm-evals): LLM evals is an open-source agent skill for developer tools.
- [LLM observability](https://ai-powered.com/skills/llm-observability): LLM observability is an open-source agent skill for developer tools.
- [Benchmark checklist](https://ai-powered.com/skills/benchmark-checklist): Benchmark checklist is an open-source agent skill for developer tools.
- [Install stack flagos](https://ai-powered.com/skills/install-stack-flagos): Install stack flagos is an open-source agent skill for developer tools.
- [Workloads](https://ai-powered.com/skills/workloads): Workloads is an open-source agent skill for developer tools.
- [Rtvi vlm customize model](https://ai-powered.com/skills/rtvi-vlm-customize-model): Rtvi vlm customize model is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/perf-test-flagos
