Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69096 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44796 invoked from network); 12 Sep 2013 13:06:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2013 13:06:32 -0000 Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.181 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 209.85.217.181 mail-lb0-f181.google.com Received: from [209.85.217.181] ([209.85.217.181:60098] helo=mail-lb0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/FB-12981-75CB1325 for ; Thu, 12 Sep 2013 09:06:32 -0400 Received: by mail-lb0-f181.google.com with SMTP id u14so856078lbd.40 for ; Thu, 12 Sep 2013 06:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=OSUoIlrDE9QPSvKMa4IMOXpARswX4XWjbWhXKMRcg6A=; b=CdO0QtowJDlBlA4jhleFx5fi+2HZX5Ri/C9BRlZE2xn9vTGGh3ho53JuJlxkHYz8Pa xb1PpDcLNhSiYsRXVIZ9ds7eptuZhD/yUbfq8plTPa8M8TostVTtoBahdjE2y5UJDpc/ rP9dL3HlWk/d7HDBEi1m1Xe4suTkQQduUzCChD923lNEIRwimHPsrH5jux8kbwY3ybrm V6OKFEqRIP/Bz1mqbIHb3E/lrkQpmFwrHSKQFkO57S0keGc26y4KNjCeS/sQeUhp8WHx h0tYiNrxIzbTj98PYI9MMY1GoeOB91rPk/l04oDoAF6YWMO71kyRPYhICutwq6sUUQoS IbAw== MIME-Version: 1.0 X-Received: by 10.152.44.225 with SMTP id h1mr6189370lam.15.1378991188691; Thu, 12 Sep 2013 06:06:28 -0700 (PDT) Sender: mike.php.net@gmail.com Received: by 10.114.184.19 with HTTP; Thu, 12 Sep 2013 06:06:28 -0700 (PDT) In-Reply-To: References: Date: Thu, 12 Sep 2013 15:06:28 +0200 X-Google-Sender-Auth: 5H5qdvghx4DZQIFZJFkwX0mu_yk Message-ID: To: Bob Weinand Cc: Developers PHP Mailing List Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Support for keywords where possible From: mike@php.net (Michael Wallner) On 12 September 2013 14:56, Bob Weinand 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