Connect & Get help from fellow developers on our Discord community.
Ask the Community
Set thresholds
Define pass/fail criteria based on performance metrics
Set thresholds to automatically flag regressions when metrics exceed acceptable limits.
Depending on your preferred method, select any one of the following to set thresholds:
Set thresholds
Use thresholds to decide test status based on performance and reliability metrics:
- Click Thresholds to expand the section.
- Click Add metric for criteria and choose a metric.
- Set the condition (for example, is greater than, is less than) and enter a value.
- Repeat for additional metrics as needed:
Available metrics:
- Total requests (count)
- Error % (percentage)
- Error count (count)
- Avg request rate (req/s)
- Avg response time (ms)
- p90 response time (ms)
- p75 LCP (s)
- p75 INP (ms)
- p75 FCP (s)
- p75 TTFB (ms)
- p75 CLS
Set thresholds
Use thresholds to determine test pass or fail based on metrics.
Available Metric list and corresponding keys for load testing:
- Avg. response time -
avg-response-time - p90 response time -
p90-response-time - Avg. request rate -
avg-request-rate - Total requests -
total-requests - Error % -
error-percentage - Error count -
error-count - p75 LCP-
p75-lcp - p75 FCP-
p75-fcp - p75 INP-
p75-inp - p75 CLS-
p75-cls - p75 TTFB -
p75-ttfb
Available conditions:
=!=><>=<=
We assume the following units for the metrics:
- Avg. response time, p90 response time, INP, TTFB -
ms - Avg. request rate -
reqs/s - Error % -
% - FCP, LCP -
s - Total requests, Error count, CLS - no unit
browserstack-load.yml
thresholds:
- metric: avg-response-time
condition: '>='
threshold: 20
- metric: error-percentage
condition: '<='
threshold: 5
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!