Jump to content

stress testing a library


Liquid Fire

Recommended Posts

I have built a framework and using on my own personal site I am working on.  Now I don't see any reason on why it would not be able to work on a high traffic website but that is something I would like to test.  Now I want to be able to use this framework at work and the site I would be implementing it on is going to be a high traffic site and I would like to stress test the framework before I do this just to make sure.  is their a good way to stress test a website to make sure I don't have any major bottlenecks in my framework?

Link to comment
https://forums.phpfreaks.com/topic/88212-stress-testing-a-library/
Share on other sites

In my cms's index.phtml (when testing) I wrap the code like this to time it:

$time_start = get_microtime();

...

printf( "<br>Page generated in %0.4f seconds<br>\n", (get_microtime() - $time_start));

 

as for wget, you could use anything, even write a php which use's cURL or some kind of socket to retrieve a list of pages from your site...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.