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

# 90th latency percentile

> Learn how to use the 90th latency percentile test

## Definition

The 90th latency percentile test ensures that the 90th percentile latency for the data is within a given range.

## Taxonomy

* **Task types**: LLM, tabular classification, tabular regression, text classification.
* **Availability**: monitoring (Monitor a model in production, measure its health, check for drifts and set up alerts.).

## Why it matters

* The 90th percentile latency provides insight into the performance experienced by the majority of users, excluding the worst 10% of cases.
* This metric helps identify performance issues that affect a significant portion of users while being less sensitive to extreme outliers than maximum latency.
* Monitoring the 90th percentile is crucial for maintaining consistent user experience and meeting SLA requirements.

## Test configuration examples

If you are writing a `tests.json`, here are a few valid configurations for the 90th latency percentile test:

```json Development theme={null}
[
  {
    "name": "90th percentile latency below 6000 msec",
    "description": "Make sure that the 90th percentile latency is below 6000 msec",
    "type": "performance",
    "subtype": "metricThreshold",
    "thresholds": [
      {
        "insightName": "metrics",
        "measurement": "p90Latency",
        "operator": "<",
        "value": 6000
      }
    ],
    "subpopulationFilters": null,
    "mode": "development",
    "usesValidationDataset": true,
    "usesTrainingDataset": false,
    "usesMlModel": true,
    "syncId": "b4dee7dc-4f15-48ca-a282-63e2c04e0689"
  }
]
```

```json Monitoring theme={null}
[
  {
    "name": "90th percentile latency below 6000 msec",
    "description": "Make sure that the 90th percentile latency is below 6000 msec",
    "type": "performance",
    "subtype": "metricThreshold",
    "thresholds": [
      {
        "insightName": "metrics",
        "measurement": "p90Latency",
        "operator": "<",
        "value": 6000
      }
    ],
    "subpopulationFilters": null,
    "mode": "monitoring",
    "usesProductionData": true,
    "evaluationWindow": 3600,
    "delayWindow": 0,
    "syncId": "b4dee7dc-4f15-48ca-a282-63e2c04e0689"
  }
]
```

## Related

* [Mean latency test](https://docs.openlayer.com/tests/catalog/mean-latency.md).
* [Max latency test](https://docs.openlayer.com/tests/catalog/max-latency.md).
* [95th latency percentile test](https://docs.openlayer.com/tests/catalog/p95-latency.md).
* [99th latency percentile test](https://docs.openlayer.com/tests/catalog/p99-latency.md).


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