> ## 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**: <Tooltip tip="Monitor a model in production, measure its health, check for drifts and set up alerts.">monitoring</Tooltip>.

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

<CodeGroup>
  ```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",
          "insightParameters": null,
          "measurement": "minLatency",
          "operator": ">",
          "value": 100
        }
      ],
      "subpopulationFilters": null,
      "mode": "development",
      "usesValidationDataset": true, // Apply test to the validation set
      "usesTrainingDataset": false,
      "usesMlModel": false,
      "syncId": "b4dee7dc-4f15-48ca-a282-63e2c04e0689" // Some unique id
    }
  ]
  ```

  ```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",
          "insightParameters": null,
          "measurement": "minLatency",
          "operator": ">",
          "value": 100
        }
      ],
      "subpopulationFilters": null,
      "mode": "monitoring",
      "usesProductionData": true,
      "evaluationWindow": 3600, // 1 hour
      "delayWindow": 0,
      "syncId": "b4dee7dc-4f15-48ca-a282-63e2c04e0689" // Some unique id
    }
  ]
  ```
</CodeGroup>

## Related

* [Mean latency test](/tests/catalog/mean-latency).
* [Max latency test](/tests/catalog/max-latency).
* [Median latency test](/tests/catalog/median-latency).
* [90th latency percentile test](/tests/catalog/p90-latency).
