Back Run bench2() first.| Source Test Once Strings: Call by ref vs call by value for 1 char string |
| Call by Ref | 0.0023 | Call by Value | 0.0023 |
| Source Test Once Strings: Call by ref vs call by value for 10K string |
| Call by Ref | 0.0043 | Call by Value x 1.05 faster | 0.0041 |
| Source Test Once Strings: Call by ref vs call by value for 100K string |
| Call by Ref x 1.13 faster | 0.0346 | Call by Value | 0.0392 |
| Source Test Once Arrays: Call by ref vs call by value |
| Call by Ref x 9.50 faster | 0.0020 | Call by Value | 0.0190 |
| Source Test Once Objects: Call by ref vs call by value |
| Call by Ref x 1.10 faster | 0.0041 | Call by Value | 0.0045 |
| Source Test Once Strings: Return multiple values using Array or use ref params |
| Return using Array | 0.0045 | Use Ref Params x 1.29 faster | 0.0035 |
| Source Test Once Objects: Return by ref vs by value |
| Return by Ref $x =& $f() x 1.08 faster | 0.0012 | Return by Value | 0.0013 |
| Source Test Once Objects: Return by partial ref vs by value |
| Return by Partial Ref $x = f() x 2.08 faster | 0.0013 | Return by Value | 0.0027 |
| Source Test Once Strings: Calling function with short vs long name |
| 1 char function name x 1.60 faster | 0.0005 | long 72 char function name | 0.0008 |
Testing PHP 5.0.0RC2 Completed on WINNT. Benchmark done on: 03-May-2004 18:17:16