-
Notifications
You must be signed in to change notification settings - Fork 2
/
benchmark.hf.yaml
29 lines (29 loc) · 1.09 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
name: jfr-datasource-hyperfoil
http:
host: http://localhost:8080
sharedConnections: 1 # allow only one connection at a time
maxHttp2Streams: 1 # Force sequential HOL blocking
pipeliningLimit: 1 # only for http 1.1
usersPerSec: 1
duration: 5 # this is how long the benchmark runs
scenario:
- test:
- httpRequest:
POST: /set
headers:
content-type: application/json
# Here we specify a multi-line string. For more info about multiline strings,
# compacting/chopping of newlines etc. please check out https://yaml-multiline.info/
body: "dummy_recording.jfr"
# 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
sync: true
# We'll wait for the `completed` var to be set in this step, though.
- awaitVar: completed