The Linkielist
Skip to content
  • Home
  • About
  • Twitter Feed

PHP speed tests

Posted on July 18, 2006June 4, 2009 by Robin

These pages have a few benchmark tests for PHP4 perfomance to do the same thing using different methods.:


READ LOOP: foreach() vs. while(list()=each())
MODIFY LOOP: foreach() vs. while(list()=each())
For-loop test
Using the &-ref-operator as so called “alias”
$obj = new SomeClass() vs. $obj =& new SomeClass() using the =&-ref-operator
double (“) vs. single (‘) quotes
sSet() vs. empty() vs. is_array()
switch/case vs. if/elseif

Creating int array[100 000]
Reading int array[100 000]
Reading apache log (16Mb)
Parse vars names [100 000]
Parse and find text from apache log (32Mb)
Split text apache log 200Kb (contain 2000 “-“)
Count array size. $arr = int[100 000]
Create object by Ref (loop 100 000)
Random number generator (loop 100 000)
Calculate hash (loop 100 000)

NB Refresh the pages a few times, the results change as webserver load differs.

This entry was posted in Software. Bookmark the permalink.

Post navigation

← Maths?
Oak Grove Gravity Hill →

Categories

  • 3D Printing (50)
  • Android (62)
  • Animals (32)
  • Architecture (24)
  • Art (141)
  • Artificial Intelligence (262)
  • Conspiracies (215)
  • Display (52)
  • Economics (190)
  • Energy (36)
  • Fame (22)
  • Fashion (49)
  • Gadgets (410)
  • Games (99)
  • Global Domination (708)
    • Copyright (33)
    • Privacy (310)
  • Hacks (550)
  • Hardware (193)
  • Human Interest (293)
  • Ipod (170)
  • Machinery (171)
  • Media (25)
  • Military (220)
  • Music (10)
  • Patents (20)
  • Poetry (5)
  • Politics (123)
  • Random (96)
  • Science (429)
  • Security (485)
  • Sex (53)
  • Software (387)
  • Space (106)
  • Storage (18)
  • Stories (22)
  • Uncategorized (170)

Subscribe

  • RSS FeedRSS Feed
  • Atom FeedAtom Feed
  • Add to Google Reader/HomepageAdd to Google
  • Add to My YahooMy Yahoo

Archives

Open your mind. The word is large
www.edgarbv.com
Zelle Lite developed by ThemeIsle