LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Slightly OT: Suggestions for performance testing PHP website

[ILUG] Slightly OT: Suggestions for performance testing PHP website

Rafiq Maniar rafiq.maniar at gmail.com
Tue Dec 2 17:59:55 GMT 2008


Hey,
I've done a lot of testing with siege, AB, and httperf - and they're great
for
testing webserver load, but not necessarily application load.

They make a connection to a page (or in the case of siege or httperf, a set
of pages user-definable), download
or simulate download of the content, and disconnect. They don't really
simulate an active user - one who clicks on various links, submits data,
i.e. someone
actually using the application as opposed to simply loading a page.

The problem with hitting the same page or group of pages over and over is
that
your performance tests with AB et al will be better than real-life.

Say you hit the index.php 5000 times with AB - after the very first time,
that file
has been read by the OS and is now cached in local buffers (actually this
applies to Linux, I would
assume the same on Windows, but who knows). Also, whatever requests that
PHP made to your DB are now cached by PGSql. So for the other 4999 requests,
they're being accessed to a lesser or greater extent from memory rather than
disk.

Thats all well and good if this is all a user will ever be doing (i.e.
loading index.php), and reflects
a normal usage scenario - however if there's more user interaction going on,
which I assume
there is, then its not quite as useful as a test.

Thats not to say its not worth doing with these tools, just be aware of what
you
are and are not testing.

Rafiq

On Tue, Dec 2, 2008 at 4:27 PM, Phil Bradley <philb at vodafone.ie> wrote:

> Rob Gallagher wrote:
>
>> Siege [1] is pretty cool. You might also want to check out httperf [2]
>> if you want to benchmark the webserver itself.
>>
>> [1] http://freshmeat.net/projects/siege/
>> [2] http://www.hpl.hp.com/research/linux/httperf/
>>
>
>
>
> Hi Rob, Paul,
>
> Thanks for wading through my lengthy post, so far ApacheBench looks to do
> what I want but I'll check out siege and httperf as well.
>
> Cheers,
>  -Phil
>
>
>
> --
> Irish Linux Users' Group mailing list
> About this list : http://mail.linux.ie/mailman/listinfo/ilug
> Who we are : http://www.linux.ie/
> Where we are : http://www.linux.ie/map/
>



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell