[cvs] [Wiki] changed: Doc/Dev/Benchmarks

Chuck Hagenbuch chuck at horde.org
Tue Jul 5 12:23:51 PDT 2005


chuck  Tue, 05 Jul 2005 12:23:51 -0700

Modified page: http://wiki.horde.org/Doc/Dev/Benchmarks
New Revision:  1.2
Change log:  formatting

@@ -2,8 +2,9 @@
 > developing PHP.
 
 I just ran a simple benchmark.  Here are the results (for 4.3.5-dev):
 
+<code>
 $var is undefined
 --------------------------------------------------------------------------
 if ($var)                    1075359033.35615200   1.53820896149    55.22%
 --------------------------------------------------------------------------
@@ -23,7 +24,8 @@
 if (empty($var))             1075358939.56134500   0.432765007019   23.75%
 --------------------------------------------------------------------------
 if (isset($var) && $var)     1075358940.15466400   0.593318939209   32.56%
 --------------------------------------------------------------------------
+</code>
 
 The tests are nearly identical under PHP5 except the 'if ($var)' test
 for '$$var = ''; / $var = 0; / $var = 1;' was about 2% slower.


More information about the cvs mailing list