4, December 2008

PHP benchmark test - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: PHP benchmark test
« previous next »
Pages: [1] Print

Author Topic: PHP benchmark test  (Read 901 times)
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« on: Jun 22, 2006, 03:40:14 PM »

just found this page:
http://www.php.lt/benchmark/phpbench.php Visit through proxy

it's interesting that

Code:
$size = count($x);
for ($i=0; $i<$size; $i++) {
//
}
is much faster then
Code:
for ($i=0; $i<sizeOf($x); $i++) {
//
}


Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8269
42601 credits
Members referred : 3



« Reply #1 on: Jun 22, 2006, 04:32:52 PM »

That's very reasonable as the second example executes the sizeOf() function each time the loop runs.


Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Jun 22, 2006, 04:52:28 PM »

That's very reasonable as the second example executes the sizeOf() function each time the loop runs.


right but the difference is very big: + 4010 %


Last blog : Just a better Internet portal provided by Google
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8269
42601 credits
Members referred : 3



« Reply #3 on: Aug 15, 2006, 02:24:39 AM »

Here is another good read for php developers (experienced or not) with benchmarks :

http://www.e-gineer.com/v1/articles/php-hackers-paradise.htm Visit through proxy

Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6486
39748 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Aug 15, 2006, 09:03:54 AM »

Here is another good read for php developers (experienced or not) with benchmarks :

http://www.e-gineer.com/v1/articles/php-hackers-paradise.htm Visit through proxy

Smiley
This is a really usefull article, must be read by every (new) php developer....


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2992
Tags : php articles Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: PHP benchmark test
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Dec 04, 2008, 02:19:56 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!





Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.