File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ # npm install -g artillery@latest
2
+ # artillery run artillery-load-test.yml
3
+ # Refer https://www.artillery.io/docs
4
+
5
+ config :
6
+ target : http://128.128.128.128:3000 # replace with your url
7
+ phases :
8
+ - duration : 1
9
+ arrivalRate : 1
10
+ rampTo : 2
11
+ name : Warm up phase
12
+ - duration : 1
13
+ arrivalRate : 2
14
+ rampTo : 3
15
+ name : Ramp up load
16
+ - duration : 1
17
+ arrivalRate : 3
18
+ name : Sustained peak load
19
+ scenarios :
20
+ - flow :
21
+ - loop :
22
+ - post :
23
+ url : ' /api/v1/prediction/chatflow-id' # replace with your chatflowid
24
+ json :
25
+ question : ' hello' # replace with your question
26
+ count : 1 # how many request each user make
27
+
28
+ # User __
29
+ # 3 /
30
+ # 2 /
31
+ # 1 _/
32
+ # 1 2 3
33
+ # Seconds
34
+ # Total Users = 2 + 3 + 3 = 8
35
+ # Each making 1 HTTP call
36
+ # Over a duration of 3 seconds
You can’t perform that action at this time.
0 commit comments