note 60574 deleted from function.echo by betz
| From: | betz@php.net | Date: | Wed, 11 Jan 2006 14:22:30 +0000 |
| Subject: | note 60574 deleted from function.echo by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-101550@lists.php.net to get a copy of this message | ||
Note Submitter: support at sascha minus diebel dot de
----
My benchmark was running on Apache/2.0.55 (Unix) PHP/5.1.1:
I took 150000 iteration and saved the results in the session for multiple requests. the results are
the intersection of quite a lot requests. the benchmark times were constant and show
echo 'Key is ', $k, '<br>',"\n",'Value is ', $v,
'<br><br>', "\n";
0.138133585453
echo 'Key is ', $k, "<br>\nValue is ", $v,
'<br><br>', "\n";
0.114041343331
echo "Key is $k<br>\nValue is $v<br><br>\n";
0.49078194797
echo 'Key is '. $k. '<br>'."\n".'Value is '. $v.
'<br><br>'. "\n";
0.199534930289
It shows that the fastest way to put content is to echo with multiple parameters and as possible no
interpolation.