Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94861 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19985 invoked from network); 5 Aug 2016 15:17:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Aug 2016 15:17:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.172 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.161.172 mail-yw0-f172.google.com Received: from [209.85.161.172] ([209.85.161.172:33225] helo=mail-yw0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/5D-33134-CFDA4A75 for ; Fri, 05 Aug 2016 11:17:16 -0400 Received: by mail-yw0-f172.google.com with SMTP id r9so269022062ywg.0 for ; Fri, 05 Aug 2016 08:17:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=9DQ2QmBqgksjQ91vVhu1dauz0L7vZYFhjHblLjoxIqk=; b=yZdSvfnUZ0CIJI6tlstvoRrvPwaIZIDxDS6nHyR1JmuBJXn+lqGVgvB+eQGL+PrS/t TYlYXQW/S/dSb5V08jvwmy2fq3v66RVwop1BGS26Lc7wuA2c32C6e0W7Q6Iw2cLd8Ws9 lxEbEQaAsHV6/0kRqLdZjJoBOlk/lVuzNR8ntgvBWlSAjExhP6AEWr2wj466ExxJlFFF d5qTQNu1Lk1fhiGFsS9cgOqL3/h6E6/RjkyKakbPJ/yyNO+fLmBcKZ5KlAIyC25hsK4t OmnOYQj4Xubk0CDUdofNxG/PYYSfor7gDvio+xHDG0GmeMm99N3vcrmR/VU5oEJGISda eygA== 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:from:date :message-id:subject:to:cc; bh=9DQ2QmBqgksjQ91vVhu1dauz0L7vZYFhjHblLjoxIqk=; b=jl++YOChYK1SSlYuj3luQzu1kHFfx2YrhFTVjBHDZ8uukoq3o0S62G6CoiW0cut+8v R9W/+VeNwu/wuK2HOy9AACuP62YaLUEQ7vwXULFGxlNqciOGvJxIjRV4uYi9o3Palwn7 bWH6sCVku+vqntI2tFMWP6zI0gwLC656pvdu1EBlxfnouZIdTeBaq87jGJ4hJ/BByRiQ k4puQtcfKQn/mc+GQipPBEtbUAmp9EAyeB91kYDaBTfB/FWCBjC8w/yR/71T58nNPYmy wSUOBu2kEhXWJBWxPxNisbVjiHA7abnwMzSoTjvRtGqFx1Y7+vstLVaHsnAnnc3w9OOL JhBg== X-Gm-Message-State: AEkoousq3HTTJzyF75IWJhWoR8XAAofeepK69HCtvSiFh0pW9emC3dTm6hM4O7/yp9soTnIs3qErJQiEtYoosg== X-Received: by 10.13.254.135 with SMTP id o129mr51714904ywf.117.1470410233410; Fri, 05 Aug 2016 08:17:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.131.129 with HTTP; Fri, 5 Aug 2016 08:17:13 -0700 (PDT) In-Reply-To: <39ACBC5984564F20A1707337BE74FC95@pc1> References: <61d7f1ee-cbf0-4d6a-9aec-d1705446d446@irsmsx104.ger.corp.intel.com> <39ACBC5984564F20A1707337BE74FC95@pc1> Date: Fri, 5 Aug 2016 17:17:13 +0200 Message-ID: To: Matt Wilmas Cc: lp_benchmark_robot@intel.com, PHP internals , langperf@lists.01.org Content-Type: multipart/alternative; boundary=94eb2c07e31ea2f8f10539548fb0 Subject: Re: [PHP-DEV] UGLY Benchmark Results for PHP Master 2016-08-05 From: nikita.ppv@gmail.com (Nikita Popov) --94eb2c07e31ea2f8f10539548fb0 Content-Type: text/plain; charset=UTF-8 On Fri, Aug 5, 2016 at 4:30 PM, Matt Wilmas wrote: > Hi all, > > ----- Original Message ----- > From: > Sent: Friday, August 05, 2016 > > Results for project PHP master, build date 2016-08-05 06:26:56+03:00 >> commit: 65b6f20 >> previous commit: 69a72df >> revision date: 2016-08-04 22:27:42+02:00 >> environment: Haswell-EP >> cpu: Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping 2, >> LLC 45 MB >> mem: 128 GB >> os: CentOS 7.1 >> kernel: Linux 3.10.0-229.4.2.el7.x86_64 >> >> Baseline results were generated using release php-7.0.0, with hash >> 60fffd2 from >> 2015-12-01 04:16:47+00:00 >> >> ------------------------------------------------------------ >> ------------------------------- >> benchmark relative change since change since >> current rev run >> std_dev* last run baseline >> with PGO >> ------------------------------------------------------------ >> ------------------------------- >> :-| Wordpress 4.2.2 cgi -T10000 0.18% -0.20% >> 5.10% 7.48% >> :-| Drupal 7.36 cgi -T10000 0.17% -0.24% >> -0.86% 5.31% >> :-| MediaWiki 1.23.9 cgi -T5000 0.11% 0.22% >> -0.13% 3.80% >> :-) bench.php cgi -T100 0.01% 1.06% .28% >> -7.09% >> :-) micro_bench.php cgi -T10 0.01% 4.09% >> 15.14% 1.66% >> :-( mandelbrot.php cgi -T100 0.15% -6.51% >> 28.51% 5.76% >> ------------------------------------------------------------ >> ------------------------------- >> > > Anyone know what has happened with the Wordpress improvement this week? > This is 3 reports in a row that show ~5%. > > Did I miss some substantial commit(s)? > > Thanks for any insight! Thanks for pointing this out. This is caused by the change to array_slice() as part of https://github.com/php/php-src/commit/e730c8fc90299789a7f551cb7142e182952d92e0#diff-497f073aa1ab88afcb8b248fc25d2a12R3014 . As a consequence of this change, an array_slice() on an array with rc=1 references will now not return these references in the result. (This is the correct behavior -- previously it instead dropped the references in the original array, which is not wrong either, but non-standard.) It looks like Wordpress is passing these arrays to call_user_func_array() with a function that expects a reference argument: call_user_func_array($the_['function'], array_slice($args, 0, (int) $the_['accepted_args'])); And this results in: nikic@saturn:~/php-src-fast$ sapi/cgi/php-cgi -c php.ini -T1 ../wordpress-4.1/index.php | grep Warning Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /home/nikic/wordpress-4.1/wp-includes/plugin.php on line 571
Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /home/nikic/wordpress-4.1/wp-includes/plugin.php on line 571
So essentially, we're winning 5% because these two calls do not occur... Nikita --94eb2c07e31ea2f8f10539548fb0--