> ## 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.

# Min latency

> Learn how to use the min latency test

## Definition

The min latency test ensures that the minimum 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 minimum latency represents the best-case performance of your model, indicating the fastest possible response time.
* This metric helps identify the baseline performance capability and can reveal issues with caching, connection overhead, or model optimization.
* Monitoring minimum latency is useful for understanding the lower bound of your system's performance and ensuring it meets expectations for optimal conditions.

## Test configuration examples

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

```json Development theme={null}
[
  {
    "name": "Min latency above 100 msec",
    "description": "Make sure that the minimum latency is above 100 msec to ensure realistic measurements",
    "type": "performance",
    "subtype": "metricThreshold",
    "thresholds": [
      {
        "insightName": "metrics",
        "measurement": "minLatency",
        "operator": ">",
        "value": 100
      }
    ],
    "subpopulationFilters": null,
    "mode": "development",
    "usesValidationDataset": true,
    "usesTrainingDataset": false,
    "usesMlModel": true,
    "syncId": "b4dee7dc-4f15-48ca-a282-63e2c04e0689"
  }
]
```

```json Monitoring theme={null}
[
  {
    "name": "Min latency above 100 msec",
    "description": "Make sure that the minimum latency is above 100 msec to ensure realistic measurements",
    "type": "performance",
    "subtype": "metricThreshold",
    "thresholds": [
      {
        "insightName": "metrics",
        "measurement": "minLatency",
        "operator": ">",
        "value": 100
      }
    ],
    "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).
* [Median latency test](https://docs.openlayer.com/tests/catalog/median-latency.md).
* [90th latency percentile test](https://docs.openlayer.com/tests/catalog/p90-latency.md).


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