-
Notifications
You must be signed in to change notification settings - Fork 169
/
get-fights.hf.yml
39 lines (36 loc) · 1.32 KB
/
get-fights.hf.yml
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
# This Hyperfoil benchmark runs a GET to the /api/fights endpoint
# Here is a list of all the parameters and their default values that can be adjusted when running:
#
# FIGHT_PROTOCOL=http (The protocol used by the benchmark)
# FIGHT_HOST=localhost (The host the rest-fights application is running on)
# FIGHT_PORT=8082 (The port the rest-fights application is running on)
# SHARED_CONNECTIONS=400 (The number of connections to share across the requests)
# USERS_PER_SEC=20 (The number of users per second)
# MAX_SESSIONS=200 (The maximum number of hyperfoil sessions to make available)
# DURATION=3m (The duration to run the benchmark)
name: get-fights
http:
- protocol: !param FIGHT_PROTOCOL http
host: !param FIGHT_HOST localhost
port: !param FIGHT_PORT 8082
name: fights-host
sharedConnections: !param SHARED_CONNECTIONS 400
phases:
- getFights:
constantRate:
startAfter: warmUp
usersPerSec: !param USERS_PER_SEC 20
maxSessions: !param MAX_SESSIONS 200
duration: !param DURATION 3m
scenario:
- getFights: &getFights
- httpRequest:
GET: /api/fights
headers:
accept: application/json
- warmUp:
always:
users: 10
duration: 10s
scenario:
- getFights: *getFights