Back   Run bench2() first.
Source   Test Once   Reading CONSTANTS versus Global Variables
Constants x 1.62 faster 0.0008 Globals 0.0013
Source   Test Once   + vs += integer operators
+ integer 0.0013 += integer x 1.44 faster 0.0009
Source   Test Once   + vs += string operators
+ strings 0.0023 += strings x 1.21 faster 0.0019
Source   Test Once   += vs + string operators
+= strings x 1.24 faster 0.0017 + strings 0.0021
Source   Test Once   short vs long variable names
short var name (1 char) x 2.00 faster 0.0004 long var name (72 chars) 0.0008

Testing PHP 5.0.0RC2 Completed on WINNT. Benchmark done on: 03-May-2004 18:17:54


(c) 2003-2004 John Lim PHP Benchmark Suite (PHP BS 1.01). Sponsored by Natsoft and Ormes.