What you'll learn
- How to make Artillery report response time metrics for individual endpoints / URLs
By default, Artilery calculates and prints response time metrics (p50, p95, p99, min and max) measured across all endpoints (or URLs).
artillery-plugin-metrics-by-endpoint can be used to print response time metrics per URL.
Install the plugin
npm install artillery-plugin-metrics-by-endpoint
Enable the plugin
useRequestNamesOnly to report metrics based on the name of the request, rather than the URL.
This can be useful when your test sends requests to the same endpoint with different query string parameters.
name property is not set on a request, the plugin will use the URL.
In the following example, metrics for the first 3 requests to
/ which share the same
name (but use different query strings) will be reported together.
- duration: 60
# Group metrics by request name rather than URL:
code 200 on index: 30
code 200 on /docs: 10