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 (78)
  • Animals (44)
  • Architecture (27)
  • Art (192)
  • Artificial Intelligence (700)
  • Cloud (68)
  • Conspiracies (246)
  • Display (118)
  • Economics (752)
    • Monopoly (68)
  • Energy (157)
  • Fame (25)
  • Fashion (53)
  • Gadgets (563)
  • Games (155)
  • Global Domination (2,004)
    • Copyright (259)
    • Privacy (997)
  • Hacks (1,027)
  • Hardware (337)
  • Human Interest (507)
  • Ipod (183)
  • Machinery (274)
  • Media (28)
  • Military (334)
  • Music (19)
  • Patents (30)
  • Poetry (5)
  • Politics (154)
  • Random (157)
  • Science (809)
    • Medicine (21)
  • Security (1,060)
  • Sex (71)
  • Software (553)
  • Space (338)
  • 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