Skip to content

Commit de5ab82

Browse files
committed
add artillery load test yml file
1 parent b5f29f0 commit de5ab82

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

artillery-load-test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

0 commit comments

Comments
 (0)