Jump to content

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

You could include a microtimer time for the page generation... then write a bash script to spawn lostsa threads that each call wget in spider mode... then grep all the results, looking for your timer output... also time the scripts themselves and check the mysql logs...

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.