The Linkielist
Skip to content
  • Home
  • About

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.

Robin

 razor@edgarbv.com  https://www.edgarbv.com

This entry was posted in Software. Bookmark the permalink.

Post navigation

← Maths?
Oak Grove Gravity Hill →

Categories

  • 3D Printing (85)
  • Android (77)
  • Animals (43)
  • Architecture (27)
  • Art (191)
  • Artificial Intelligence (686)
  • Cloud (60)
  • Conspiracies (245)
  • Display (116)
  • Economics (731)
    • Monopoly (55)
  • Energy (151)
  • Fame (25)
  • Fashion (53)
  • Gadgets (553)
  • Games (149)
  • Global Domination (1,952)
    • Copyright (249)
    • Privacy (968)
  • Hacks (1,012)
  • Hardware (334)
  • Human Interest (497)
  • Ipod (183)
  • Machinery (273)
  • Media (28)
  • Military (328)
  • Music (19)
  • Patents (30)
  • Poetry (5)
  • Politics (150)
  • Random (155)
  • Science (785)
    • Medicine (8)
  • Security (1,048)
  • Sex (69)
  • Software (547)
  • Space (335)
  • Storage (21)
  • Stories (24)
  • Uncategorized (194)

Archives

July 2025
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Jun    
Open your mind. The word is large
www.edgarbv.com
Zelle Lite developed by ThemeIsle