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 (76)
  • Animals (42)
  • Architecture (27)
  • Art (191)
  • Artificial Intelligence (682)
  • Cloud (60)
  • Conspiracies (245)
  • Display (115)
  • Economics (728)
    • Monopoly (53)
  • Energy (151)
  • Fame (25)
  • Fashion (53)
  • Gadgets (553)
  • Games (149)
  • Global Domination (1,940)
    • Copyright (246)
    • Privacy (963)
  • Hacks (1,010)
  • Hardware (332)
  • Human Interest (495)
  • Ipod (183)
  • Machinery (273)
  • Media (28)
  • Military (325)
  • Music (19)
  • Patents (30)
  • Poetry (5)
  • Politics (150)
  • Random (155)
  • Science (774)
  • Security (1,041)
  • Sex (69)
  • Software (543)
  • Space (333)
  • Storage (21)
  • Stories (24)
  • Uncategorized (194)

Archives

June 2025
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« May    
Open your mind. The word is large
www.edgarbv.com
Zelle Lite developed by ThemeIsle