forked from mzbench/mzbench
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple_http.bdl
More file actions
16 lines (13 loc) · 770 Bytes
/
Copy pathsimple_http.bdl
File metadata and controls
16 lines (13 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!benchDL
# this simplified http example is trying to request "target_url" at variable rate from 1 rps to 200
# "ok" rate should be always greater than 0.5 per second, otherwise it fails
assert(always, "http_ok.rps" > 0.5)
make_install(
git = "https://github.com/mzbench/mzbench.git", # worker location
dir = "workers/simple_http") # sub-folder in git repo
pool(size = numvar("worker_count", 20), # 20 parallel "threads"
worker_type = simple_http_worker):
loop(time = 120 sec, # execution time 120 seconds
rate = ramp(linear, 1 rps, numvar("max_rps", 200) rps)):
get(var("target_url", "http://172.21.3.3/index.html"))
# GET parameters are passed through url, for example get("http://172.21.3.3/?x=y")