Re: Re: Benchmark for echoing via comma, concat, inteprolation, and heredoc.
| From: | Robert Cummings | Date: | Wed, 27 Aug 2008 17:18:15 +0000 |
| Subject: | Re: Re: Benchmark for echoing via comma, concat, inteprolation, and heredoc. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278795@lists.php.net to get a copy of this message | ||
On Wed, 2008-08-27 at 18:02 +0100, Colin Guthrie wrote:
> Robert Cummings wrote:
> > That echo benchmark though... WTF!
>
> Yup similar numbers here tho' not quite as staggering on my setup:
Hah, your values led me to think about it... then I realized I've been
playing around with Xen lately and was currently running the Xen kernel.
This was having a huge performance penalty on my system... which is odd
since I have a Quad Phenom Black Edition (must be at the kernel level
then since my CPU load is miniscule). Anyways, rebooting to the non Xen
kernel I get the following numbers which reflect the same distribution
but are MUCH faster lol.
shell:~> time php5 -qC test.echo.php > /dev/null
real 0m10.622s
user 0m5.380s
sys 0m4.680s
shell:~> time php5 -qC test.concat.php > /dev/null
real 0m4.875s
user 0m3.990s
sys 0m0.870s
shell:~> time php5 -qC test.interpol.php > /dev/null
real 0m4.799s
user 0m3.740s
sys 0m1.050s
shell:~> time php5 -qC test.heredoc.php > /dev/null
real 0m4.901s
user 0m3.750s
sys 0m1.070s
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP