locustio / locust

Write scalable load tests in plain Python 🚗💨
https://locust.cloud
MIT License
25.1k stars 3k forks source link

Add option to enable different statistics in the chart menu #2946

Closed orion160 closed 1 month ago

orion160 commented 1 month ago

Prerequisites

Description

On the chart menu the only possible statistics for requests are p95 and p99.

andrewbaldwin44 commented 1 month ago

Hey @orion160, have you seen PERCENTILES_TO_CHART in https://docs.locust.io/en/stable/configuration.html?

You can change which percentiles you would like to see in your locustfile like so:

import locust.stats
locust.stats.PERCENTILES_TO_CHART = [0.5, 0.6, 0.7]