> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rivvr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Model performance

> Latency, throughput, queue depth, errors, and GPU utilization from real traffic.

This shows how fast one model answered real requests and how many errors it had:

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model performance hello --since 24h --step 1h
```

That means: for the model `hello`, over the last 24 hours, in one-hour parts. See [time ranges](https://docs.rivvr.ai/guides/monitoring.md#choosing-a-time-range) for other options.

You always look at one model at a time. There's no view for a whole project. Rivvr reads the numbers from the cluster the model runs on, whichever cluster you have selected.

A model only has numbers once it's running (`DEPLOY_READY`) and has answered some requests. If you get nothing back, check `rivvr model get hello` first.

## If the model is slow

Look at these three numbers over the same time range:

* Time to first token (TTFT): how long users wait before the answer starts.
* Decode throughput: how fast the answer is written, in tokens per second.
* Queue depth: how many requests are waiting their turn.

If there are more errors, check the number of requests too. More requests alone can mean more errors.

GPU usage and the number of prompt and answer tokens help you understand the situation, but they don't tell you the cause on their own.

## All the numbers

The normal output is a short summary. Add `--json` for everything: every measurement, the model's share of cluster cost, the cost per million tokens, and how much of the time range has data.

```bash theme={"theme":{"light":"github-light","dark":"vesper"}}
rivvr model performance hello --since 24h --step 1h --json
```

## Reading the numbers correctly

`avgLatencyMs` is the median (p50): half the requests were faster. Despite its name, it isn't an average. p95 isn't available.

When a range has several parts, Rivvr combines each part's p50 or p90 into one number by averaging them, giving more weight to parts with more requests. That's close to, but not the same as, the real p50 or p90 of all requests. So only compare ranges with the same length and the same `--step`.

A missing part or a `null` value means there's no data for that time. It doesn't mean zero latency or that everything was fine. The coverage number tells you how many parts returned data. It doesn't tell you whether data collection is working.

If the model never reached `DEPLOY_READY`, there's nothing to measure here. Look at its [testing runs](https://docs.rivvr.ai/guides/manage-models.md#find-out-why-it-failed) instead.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.