Liquid Fire Posted January 28, 2008 Share Posted January 28, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/88212-stress-testing-a-library/ Share on other sites More sharing options...
tinker Posted January 28, 2008 Share Posted January 28, 2008 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... Quote Link to comment https://forums.phpfreaks.com/topic/88212-stress-testing-a-library/#findComment-451470 Share on other sites More sharing options...
Liquid Fire Posted January 28, 2008 Author Share Posted January 28, 2008 I would not even know where to start to do that. Is their any site that could teach be how to do that or something? Quote Link to comment https://forums.phpfreaks.com/topic/88212-stress-testing-a-library/#findComment-451492 Share on other sites More sharing options...
tinker Posted January 28, 2008 Share Posted January 28, 2008 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... Quote Link to comment https://forums.phpfreaks.com/topic/88212-stress-testing-a-library/#findComment-451500 Share on other sites More sharing options...
hitman6003 Posted January 28, 2008 Share Posted January 28, 2008 Unit testing.... http://www.phpunit.de/ Quote Link to comment https://forums.phpfreaks.com/topic/88212-stress-testing-a-library/#findComment-451510 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.