Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69098 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52509 invoked from network); 12 Sep 2013 14:34:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2013 14:34:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.112 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.112 blu0-omc2-s37.blu0.hotmail.com Windows 2000 SP4, XP SP1 Received: from [65.55.111.112] ([65.55.111.112:35461] helo=blu0-omc2-s37.blu0.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/6D-12981-901D1325 for ; Thu, 12 Sep 2013 10:34:50 -0400 Received: from BLU0-SMTP103 ([65.55.111.71]) by blu0-omc2-s37.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 12 Sep 2013 07:34:47 -0700 X-TMN: [mJJsR6uGKPAwjC6qOkCOu88DMaUFinO0] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Received: from [192.168.178.42] ([188.115.28.77]) by BLU0-SMTP103.phx.gbl over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 12 Sep 2013 07:34:43 -0700 Content-Type: text/plain; charset="windows-1252" MIME-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) In-Reply-To: Date: Thu, 12 Sep 2013 16:34:40 +0200 CC: Developers List PHP Mailing Content-Transfer-Encoding: quoted-printable References: To: Michael Wallner , Benjamin Eberlei X-Mailer: Apple Mail (2.1508) X-OriginalArrivalTime: 12 Sep 2013 14:34:43.0818 (UTC) FILETIME=[38E394A0:01CEAFC5] Subject: Re: [PHP-DEV] Support for keywords where possible From: bobwei9@hotmail.com (Bob Weinand) Am 12.9.2013 um 15:06 schrieb Michael Wallner : > On 12 September 2013 14:56, Bob Weinand wrote: >> A little benchmark here: https://gist.github.com/bwoebi/6536824 >>=20 >> Here I picked always the best from 10 times running. >>=20 >> With patch: >> root# ./sapi/cli/php microbench.php >> Took for 10000 iterations: 8.6687519550323 seconds >>=20 >> Without patch: >> root# ./sapi/cli/php ../bwo-php-src/microbench.php >> Took for 10000 iterations: 8.5741410255432 seconds >>=20 >> But this is the very worst case. (e.g. there are JUST cases where = strncasecmp needs to be used) >=20 > Is there a number missing after "JUST"? no=85 I mean, in the benchmark are included all the cases where = strncasecmp needs to be used. >> When picking random files the results are pretty similar: >=20 > What random files? Some PHP files that were on my server >>=20 >> With patch: >> root# ./sapi/cli/php microbench.php >> Took for 10000 iterations: 15.564201116562 seconds >>=20 >> Without patch: >> root# ./sapi/cli/php microbench.php >> Took for 10000 iterations: 15.562065023422 seconds >>=20 >> It's here only a difference of about 2 milliseconds or 0,01% what is = in the margin of error I think. >=20 > 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? >=20 >=20 > --=20 > Regards, > Mike As Benjamin suggested, here the best running times of "time phpunit" in = the symfony test suite: With patch: real 0m30.885s user 0m14.713s sys 0m2.123s Without patch: real 0m31.380s user 0m14.865s sys 0m2.170s Seems that it is very similar (I have here variances of =B12 seconds=85) = So I think my patch doesn't have a huge impact. Bob Weinand=