You are here: Re: [PHP] how to test paralelly? « PHP « IT news, forums, messages
Re: [PHP] how to test paralelly?

Posted by Richard Lynch on 05/12/05 05:53

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация