The Linkielist
Skip to content
  • Home
  • About
  • Privacy Policy

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 (86)
  • Android (77)
  • Animals (44)
  • Architecture (27)
  • Art (192)
  • Artificial Intelligence (695)
  • Cloud (66)
  • Conspiracies (246)
  • Display (118)
  • Economics (749)
    • Monopoly (66)
  • Energy (156)
  • Fame (25)
  • Fashion (53)
  • Gadgets (561)
  • Games (153)
  • Global Domination (1,994)
    • Copyright (255)
    • Privacy (992)
  • Hacks (1,025)
  • Hardware (336)
  • Human Interest (505)
  • Ipod (183)
  • Machinery (274)
  • Media (28)
  • Military (331)
  • Music (19)
  • Patents (30)
  • Poetry (5)
  • Politics (150)
  • Random (156)
  • Science (806)
    • Medicine (20)
  • Security (1,058)
  • Sex (71)
  • Software (552)
  • Space (337)
  • Storage (21)
  • Stories (24)
  • Uncategorized (194)

Archives

September 2025
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  
« Aug    
Open your mind. The word is large
www.edgarbv.com
Zelle Lite developed by ThemeIsle