note 21581 added to function.echo
| From: | russ-phpnet at x23 dot com | Date: | Fri, 17 May 2002 21:46:54 +0000 |
| Subject: | note 21581 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30774@lists.php.net to get a copy of this message | ||
Regarding the benchmarking code by asmo@mail.utexas.edu above: I found the time savings are only
evident when using a large number of arguments.
On my server the break-even point is about 50. With less than 50 arguments, his code is actually
faster at concatenation.
With 5 args, I get: Concats took 8.9049339294434E-05 seconds Params took 0.00013697147369385
Percentage-wise, it appears to be 50% slower to use parameters than concatenation with a low number
of arguments.
--
http://www.php.net/manual/en/function.echo.php
http://master.php.net/manage/user-notes.php?action=edit+21581
http://master.php.net/manage/user-notes.php?action=delete+21581
http://master.php.net/manage/user-notes.php?action=reject+21581