Re: IF or SWITCH

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This one time, at band camp, Jad madi <syntux@xxxxxxxxx> wrote:

> Kevin, 
> I'm just curious to know how to did you do that benchmark.

Sure, use ab (Apache Benchmark) which comes with your build of apache.
Simply create your file foo.php and give ab the command
ab http://www.example.com/foo.php -n 10000 -c 4

you may also use localhost as such
ab http://localhost/foo.php -n 10000 -c 4

If the concurrency is omitted a concurrency of 1 is assumed

This will tell ab the url, and to request it 10,000 times with a concurrency of 4.
Depending on your hardware ab will tick over and generate a report.

man ab will give you more info

Kind regards
Kevin

-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux