28, May 2012

PHP benchmark test - webmaster forum

 
Webdigity webmaster forums
[ 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
Instabuck - The easy way to sell digital products online

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


It's time to use PHP5!


« on: Jun 22, 2006, 02:40:14 pm »

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

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++) {
//
}

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Jun 22, 2006, 03: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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Jun 22, 2006, 03: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 %

I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: Aug 15, 2006, 01: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

Smiley

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

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Aug 15, 2006, 08: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

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

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

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?
May 28, 2012, 01:29:03 pm





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!






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