Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69097 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46373 invoked from network); 12 Sep 2013 13:12:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Sep 2013 13:12:15 -0000 Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 209.85.212.175 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 209.85.212.175 mail-wi0-f175.google.com Received: from [209.85.212.175] ([209.85.212.175:35428] helo=mail-wi0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/5C-12981-DADB1325 for ; Thu, 12 Sep 2013 09:12:13 -0400 Received: by mail-wi0-f175.google.com with SMTP id ez12so3494400wid.8 for ; Thu, 12 Sep 2013 06:12:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Yvx2ixUrm1tFTX4zcRrXv4uar9Vyky8e4HAwps2z7RY=; b=JY5TFOlY6Q9VyIk7I4Ly2t0TkU1NCcInRKYaA8m7jw+e9qjHYmMXekg+fHQG384GVk /epy6O4OqzbEYeAARReAPjFuhZB4pV1U7DJ76FSN5t4H10eNIyo1QoStz20hKKiHxIAE oigWUOpvSAnMzPqfqiOg7giqiZg/ljC8lpeqhNG8hO9JrdUFXYm382hYHhVlK92VTmN8 v/XnbrGK6E5zfyLEXogguZA72tuOlqjm0Q9v4cgJwqZCr1kxW9c2tHiFnPAitJFKwNX4 +DCx/Oy8RBeAXixpMltoYqfwd026+S2DDTa/Ti4c2ARxSYRoL+c2ik+yaEBql4NF/xJc V4Pg== X-Gm-Message-State: ALoCoQn95SbqUrUoEksjei9/9OleYngJdAJfUMbSrGrQoAC1QooVuPESiszoP76qbDniDDIsu1uP MIME-Version: 1.0 X-Received: by 10.180.77.68 with SMTP id q4mr22021776wiw.4.1378991530663; Thu, 12 Sep 2013 06:12:10 -0700 (PDT) Received: by 10.194.201.104 with HTTP; Thu, 12 Sep 2013 06:12:10 -0700 (PDT) X-Originating-IP: [80.187.101.108] In-Reply-To: References: Date: Thu, 12 Sep 2013 15:12:10 +0200 Message-ID: To: Michael Wallner Cc: Bob Weinand , Developers PHP Mailing List Content-Type: multipart/alternative; boundary=f46d043893bd55721604e62f7c1e Subject: Re: [PHP-DEV] Support for keywords where possible From: kontakt@beberlei.de (Benjamin Eberlei) --f46d043893bd55721604e62f7c1e Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d043893bd55721604e62f7c1e--