Connecting Tech Pros Worldwide Forums | Help | Site Map

stress testing tool (scripts) for web server or MySQL written inPHP

MacRules
Guest
 
Posts: n/a
#1: Oct 13 '08
Found this testing tool,
http://simpletest.sourceforge.net/

I am looking for PHP scripts which can be used as create many
connections to a web server or MySQL back end for stress testing.

From a script, I can just pass 1 argument ( 100 connections) and
GET/POST with URL or execute some SQL to a MySQL back end.

I did write something way back with C/C++ on such tool.

Thanks for good works / suggestions




Jerry Stuckle
Guest
 
Posts: n/a
#2: Oct 13 '08

re: stress testing tool (scripts) for web server or MySQL written inPHP


MacRules wrote:
Quote:
Found this testing tool,
http://simpletest.sourceforge.net/
>
I am looking for PHP scripts which can be used as create many
connections to a web server or MySQL back end for stress testing.
>
From a script, I can just pass 1 argument ( 100 connections) and
GET/POST with URL or execute some SQL to a MySQL back end.
>
I did write something way back with C/C++ on such tool.
>
Thanks for good works / suggestions
>
>
Why does it have to be PHP? Normally a benchmarking program would be
better written in a compiled language, so as to be able to pump requests
out as quickly as possible.

Personally, I just use Apache's ab to do my benchmarking.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

MacRules
Guest
 
Posts: n/a
#3: Oct 13 '08

re: stress testing tool (scripts) for web server or MySQL written inPHP


Thanks, ab looks promising here.
I will give it a shot.

Find this,
http://www.cyberciti.biz/tips/howto-...eb-server.html

$ ab -n 1000 -c 5 http://202.54.200.1/psql.php

All I need is to pass an argument (POST) to psql.php and perform PHP +
MySQL.


Jerry Stuckle wrote:
Quote:
MacRules wrote:
Quote:
>Found this testing tool,
>http://simpletest.sourceforge.net/
>>
>I am looking for PHP scripts which can be used as create many
>connections to a web server or MySQL back end for stress testing.
>>
> From a script, I can just pass 1 argument ( 100 connections) and
>GET/POST with URL or execute some SQL to a MySQL back end.
>>
>I did write something way back with C/C++ on such tool.
>>
>Thanks for good works / suggestions
>>
>>
>
Why does it have to be PHP? Normally a benchmarking program would be
better written in a compiled language, so as to be able to pump requests
out as quickly as possible.
>
Personally, I just use Apache's ab to do my benchmarking.
>
C. (http://symcbean.blogspot.com/)
Guest
 
Posts: n/a
#4: Oct 13 '08

re: stress testing tool (scripts) for web server or MySQL written inPHP


On 13 Oct, 04:01, MacRules <MacRu...@nospam.comwrote:
Quote:
Thanks, ab looks promising here.
I will give it a shot.
>
Find this,http://www.cyberciti.biz/tips/howto-...rks-a-web-serv...
>
$ ab -n 1000 -c 5http://202.54.200.1/psql.php
>
All I need is to pass an argument (POST) to psql.php and perform PHP +
MySQL.
>
Jerry Stuckle wrote:
Quote:
MacRules wrote:
Quote:
Found this testing tool,
>http://simpletest.sourceforge.net/
>
Quote:
Quote:
I am looking for PHP scripts which can be used as create many
connections to a web server or MySQL back end for stress testing.
>
Quote:
Quote:
From a script, I can just pass 1 argument ( 100 connections) and
GET/POST with URL or execute some SQL to a MySQL back end.
>
Quote:
Quote:
I did write something way back with C/C++ on such tool.
>
Quote:
Quote:
Thanks for good works / suggestions
>
>
Quote:
Personally, I just use Apache's ab to do my benchmarking.
I can certainly recommend ab. But for more complex interactions (e.g.
session based) take a look at http::recorder and www::mechanize (perl
libs)

C.
Closed Thread