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

# Customization

> Learn how to customize your integration with CodSpeed

## Regression threshold

The regression threshold is the **percentage of performance degradation**
relative to your default branch that is **considered acceptable**.

CodSpeed provides fine-grained control over regression thresholds, allowing you
to configure different thresholds for individual benchmarks.

The status check passes only when **all benchmarks** remain within their
respective regression thresholds. If any benchmark exceeds its threshold, the
status check will fail. You can resolve this by either fixing the performance
issue or
[acknowledging the regression](https://codspeed.io/docs/features/performance-checks.md#acknowledge-regressions-or-benchmark-drops).

### Global regression threshold

By default, the global regression threshold is set to **10%** but you can change
it in the **Settings** tab of your repository:

![Regression threshold input](https://mintcdn.com/codspeed/jKaxX6yy-Kzw1C-0/assets/regression-threshold.png?fit=max\&auto=format\&n=jKaxX6yy-Kzw1C-0\&q=85\&s=c58d4a81c8be2b62ef6985542ab5c326)

Update the global regression threshold.

The global regression threshold applies to all benchmarks that do not have a
specific per-benchmark regression threshold set.

### Per-benchmark regression thresholds

Individual benchmarks can have custom regression thresholds configured from the
benchmark's dashboard page via the "Actions" menu:

![Per-benchmark regression threshold in actions menu](https://mintcdn.com/codspeed/9tt6iqG5F7alpy_p/assets/per-benchmark-regression-threshold-action.png?fit=max\&auto=format\&n=9tt6iqG5F7alpy_p\&q=85\&s=62205eb2c2f9044f366e34acbd09415b)

Open the threshold customization modal.

The modal allows you to configure a custom regression threshold for the
benchmark:

![Per-benchmark regression threshold input](https://mintcdn.com/codspeed/9tt6iqG5F7alpy_p/assets/per-benchmark-regression-threshold.png?fit=max\&auto=format\&n=9tt6iqG5F7alpy_p\&q=85\&s=878b5643e0facbf30e266df5f0159f07)

Setting a custom regression threshold for a specific benchmark.

Per-benchmark regression thresholds override the global threshold when set,
allowing fine-grained control over performance expectations for specific
benchmarks.

## Informational Status Check on Failure

Sometimes, you may not want a failure status to appear in your pull requests
when the performance check fails.

In this case, you can enable the **Informational Status Checks on Failure**
option in the **Settings** tab of your repository.

When this option is enabled, the status check will be sent as an informational
status check instead of a failure.

## Pull Request comments

You can customize when the Pull Request reports will be sent:

* **Always**: performance will be reported **on every commit**. If a comment
  already exists, it will be updated.

* **On Change**: performance will be reported **if there is a significant
  improvement**(more than the regression threshold) or **a failure**(a
  regression or a drop). If the comment is created after a change, it will be
  updated later on even if the performance is in standard bounds.

* **Never**: the performance will **never be reported** in the comments of your
  Pull Requests. The status check will still be sent though.


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