What kind of performance (page/sec) will I get out of this?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
yalag
Forum Newbie
Posts: 3
Joined: Mon Apr 06, 2009 2:19 pm

What kind of performance (page/sec) will I get out of this?

Post by yalag »

I just created a very simple php page, it reads in two GET parameters. Construct a SQL string variable using those two variables. Executes the insert statement. Then lastly it does one select query to get a row count and echos that count number. What kind of page/sec will I get out of a typical home PC as a server? Just a rough estimate. 100s? 1000s? 10000s? The database operations are done through a file socket to MYSQL.

Thank you!
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: What kind of performance (page/sec) will I get out of this?

Post by greyhoundcode »

What kind of performance does your internet connection provide, upstream as well as down?
yalag
Forum Newbie
Posts: 3
Joined: Mon Apr 06, 2009 2:19 pm

Re: What kind of performance (page/sec) will I get out of this?

Post by yalag »

assuming the network is not the limiting factor here
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: What kind of performance (page/sec) will I get out of this?

Post by Chris Corbyn »

Somewhere between 10s and 100s, depending on your system. Complete guess.
User avatar
Apollo
Forum Regular
Posts: 794
Joined: Wed Apr 30, 2008 2:34 am

Re: What kind of performance (page/sec) will I get out of this?

Post by Apollo »

Pretty simple to test for yourself: create a 2nd script which calls the 1st one a 1000 times, and measure the time spent with microtime.
Post Reply