|
Posted by Robin Vickery on 08/22/05 17:53
On 8/22/05, Chris Boget <chris.boget@wild.net> wrote:
> What do you guys use for load testing forms? I've just been opening
> seperate
> windows, navigating to the form, filling out the form on all windows and
> hitting
> the submit button at the same time. After about 15 or so windows, it
> starts to
> become a bit cumbersom. Do you guys load test? What do you use?
One of the easiest ways is to use the ab benchmarking tool that comes
free with apache:
ab -n 10000 -c 30 -p post.data http://www.example.com/form.php
Sends 10,000 requests to the form, thirty at a time, using the form
values held in the file post.data.
It'll give you output like this:
Server Software: Apache/2.0.53
Server Hostname: www.example.com
Server Port: 80
Document Path: /form.php
Document Length: 2 bytes
Concurrency Level: 30
Time taken for tests: 5.135291 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 2292519 bytes
Total POSTed: 1743654
HTML transferred: 20022 bytes
Requests per second: 1947.31 [#/sec] (mean)
Time per request: 15.406 [ms] (mean)
Time per request: 0.514 [ms] (mean, across all concurrent requests)
Transfer rate: 435.81 [Kbytes/sec] received
331.59 kb/s sent
767.55 kb/s total
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 3 4.2 3 45
Processing: 5 10 6.4 10 73
Waiting: 4 8 6.1 7 73
Total: 11 14 6.7 13 73
Percentage of the requests served within a certain time (ms)
50% 13
66% 13
75% 13
80% 13
90% 14
95% 16
98% 50
99% 51
100% 73 (longest request)
[Back to original message]
|