-
Notifications
You must be signed in to change notification settings - Fork 0
/
benchmark.hf.yaml
40 lines (40 loc) · 1.56 KB
/
benchmark.hf.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
name: jfr-hyperfoil
http:
host: http://localhost:8080
sharedConnections: 25
# 10 users will be starting the scenario every second
usersPerSec: 50
duration: 5s
scenario:
- test:
# Step `randomItem` randomly picks one item from the list below...
- randomItem:
list:
- !concat ["hello/", !param ENDPOINT, "/arbitraryText"]
- !concat ["hello/", !param ENDPOINT, "/moreArbitraryText"]
- !concat ["hello/", !param ENDPOINT, "/anotherArbitraryText"]
# ... and stores it in user's session under key `my-random-path`
toVar: my-random-path
- httpRequest:
# HTTP request will read the variable from the session and format
# the path for the GET request
GET: /${my-random-path}
# We'll use different statistics metric for webpages and images
metric:
- .*\.html -> pages
- -> other
# Handler processes the response
handler:
# We'll check that the response was successful (status 200-299)
status:
range: 2xx
# When the response is fully processed we'll set variable `completed`
# in the session.
onCompletion:
set: completed <- yes
# For demonstration purposes we will set `sync: false`.
# Next step is executed immediately after we fire the request, not
# waiting for the response.
sync: false
# We'll wait for the `completed` var to be set in this step, though.
- awaitVar: completed