Bob,

you should maybe run the testsuite for example of symfony2, it has 11k
tests and runs not too long. This should be a good benchmark. Phpunit
reports the execution times.

greetings
Benjamin


On Thu, Sep 12, 2013 at 3:06 PM, Michael Wallner <m...@php.net> wrote:

> On 12 September 2013 14:56, Bob Weinand <bobw...@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
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Reply via email to