-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathab
More file actions
24 lines (13 loc) · 617 Bytes
/
ab
File metadata and controls
24 lines (13 loc) · 617 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# ab
> Apache Benchmarking tool. The simplest tool to perform a load testing.
> More information: <https://httpd.apache.org/docs/2.4/programs/ab.html>.
- Execute 100 HTTP GET requests to a given URL:
ab -n {{100}} {{url}}
- Execute 100 HTTP GET requests, processing up to 10 requests concurrently, to given URL:
ab -n {{100}} -c {{10}} {{url}}
- Use keep alive:
ab -k {{url}}
- Set the maximum number of seconds to spend for benchmarking:
ab -t {{60}} {{url}}
- Execute 100 HTTP POST requests to a given URL, using a JSON payload from a file:
ab -n {{100}} -T {{application/json}} -p {{data.json}} {{url}}