Re: concatenating with "." or ","

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-08-26 at 12:07 -0400, tedd wrote:
> At 10:37 PM +0200 8/25/08, Bernhard Kohl wrote:
> ># Ok tedd, if you insist ..
> 
> Bernhard:
> 
> I wasn't insisting, but it's nice you picked up the Gauntlet.
> 
> Good work and it validates (but of course, you didn't think I would check?).
> 
> Your results:
> 
> Comma took: 0.0191585 milliseconds on average.
> Concatenation: 0.0195376 milliseconds on average.
> Interpolation: 0.0279227 milliseconds on average.
> Heredoc: 0.0247411 milliseconds on average.
> 
> My results:
> 
> Comma took: 0.017329251766205 milliseconds on average.
> Concatenation: 0.0011050462722778 milliseconds on average.
> Interpolation: 0.0017022013664246 milliseconds on average.
> Heredoc: 0.0035961031913757 milliseconds on average.

Did you echo the resulting concatenation? Concatenation is surely going
to be faster than output... but we're talking about output of data via
argument list versus output of data that is first concatenated. It was
already ascertained earlier that commas are ONLY useful for echo and
print situations... so bearing that in mind did you echo your
concatenated result when benchmarking concatenation?

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux