Re: how to test paralelly?

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

 



On Wed, May 11, 2005 12:26 am, Mario Lopez said:
\> I would like to measure how much users per minute
> can handle my php script, mysql db and apache server
>
> also, would like to determine how much users can be
> served at the same time and how script execution time
> changes in this case
>
> if i run a script like:
>
> $id = rand(1,70);
> $file = http://mydomain/gallery.php?galpage=$id;
> if (!($fp = @fopen ($file, "r"))){
>     return "";
> }
>
>
> $intext="";
> while(!feof($fp)){
>     $intext .= fgetc($fp);
> }
>
> @fclose($fp);
>
> it does not execute the script paralelly and gives apache
>
> any ideas how can i simulate paralel script execution?

apache benchmark aka 'ab' which comes with Apache.

man ab

may very well tell you everything you need to know.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
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