-
Notifications
You must be signed in to change notification settings - Fork 0
/
load-test-local.yaml
55 lines (55 loc) · 1.55 KB
/
load-test-local.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# This an example Artillery load test that includes:
# - A load configuration with 3 distinct phases that create
# a burst of traffic after a warm up period
# - How to use built-in "apdex" and "ensure" plugins to set up
# automated scoring and checking of performance results from the test
# - Using metrics-by-endpoint plugin to enable reporting of metrics
# for each individual URL in the test
config:
# This is a test server run by team Artillery
# It's designed to be highly scalable and withstand
# traffic spikes of millions of requests per second
target: http://localhost:8080
phases:
- duration: 60
arrivalRate: 1
rampTo: 5
name: Warm up phase
- duration: 60
arrivalRate: 5
rampTo: 10
name: Ramp up load
- duration: 30
arrivalRate: 10
rampTo: 30
name: Spike phase
# Load a couple of useful plugins
# https://docs.art/reference/extensions
plugins:
ensure: {}
apdex: {}
metrics-by-endpoint: {}
# Set a threshold of 200ms for calculating Apdex scores
# https://docs.art/reference/extensions/apdex
apdex:
threshold: 200
# Configure automated checks
# https://docs.art/reference/extensions/ensure
ensure:
thresholds:
- http.response_time.p99: 250
- http.response_time.p95: 300
http:
cookieJarOptions:
rejectPublicSuffixes: false
scenarios:
- flow:
- loop:
- get:
url: "/visits"
- post:
url: "/visits"
json:
name: "Dado"
- think: 1
count: 10