Re: Support for keywords where possible
| From: | Michael Wallner | Date: | Thu, 12 Sep 2013 13:06:28 +0000 |
| Subject: | Re: Support for keywords where possible | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69096@lists.php.net to get a copy of this message | ||
On 12 September 2013 14:56, Bob Weinand <bobwei9@hotmail.com> wrote:
> A little benchmark here: https://gist.github.com/bwoebi/6536824
>
> Here I picked always the best from 10 times running.
>
> With patch:
> root# ./sapi/cli/php microbench.php
> Took for 10000 iterations: 8.6687519550323 seconds
>
> Without patch:
> root# ./sapi/cli/php ../bwo-php-src/microbench.php
> Took for 10000 iterations: 8.5741410255432 seconds
>
> But this is the very worst case. (e.g. there are JUST cases where strncasecmp needs to be used)
Is there a number missing after "JUST"?
>
> When picking random files the results are pretty similar:
What random files?
>
> With patch:
> root# ./sapi/cli/php microbench.php
> Took for 10000 iterations: 15.564201116562 seconds
>
> Without patch:
> root# ./sapi/cli/php microbench.php
> Took for 10000 iterations: 15.562065023422 seconds
>
> It's here only a difference of about 2 milliseconds or 0,01% what is in the margin of
> error I think.
I'd love to have the freedom your patch provides, but I'm not convinced yet :)
How does it affect running one of the major frameworks out there?
--
Regards,
Mike