note 21581 deleted from function.echo by betz

From: Date: Wed, 11 Jan 2006 14:24:35 +0000
Subject: note 21581 deleted from function.echo by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-101555@lists.php.net to get a copy of this message
Note Submitter: russ-phpnet at x23 dot com ---- 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.

« previous php.notes (#101555) next »