Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104615 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 73759 invoked from network); 7 Mar 2019 19:22:30 -0000 Received: from unknown (HELO NAM02-SN1-obe.outbound.protection.outlook.com) (40.92.5.21) by pb1.pair.com with SMTP; 7 Mar 2019 19:22:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DegZQkmHycQWcd26oWDi5fp7W9oWmseCHNzHJ+nep20=; b=dsgLGHlFvy93ATrvKPiVoLs9XOUUAVtcbOUcMJOVgltWSqi7mO+8R2duHSeLUKw3nqYxTexibuHwT1b52Ldc1TDmojPiZgxrYeLqGWYFzWdjjCzq9sevh3kLWE2rAc7cyxzo7BVOv1gjmVkUQwy9+7uo6WpS3o4u3SXjsmSB6Pan47eK57c658GKauyo4NHaaOyHCSVjjs3M7+Pi3ppgAPDNJEe52C87asbC4CB7y7O3gKdh3qBNVgAImRu5FJsYdg4gocawTRX+pvu8taEvsE8KQod0VlzDCwxVeY7krLWHX+UEV4PTtgZID/9OoN2YpPkijAU6LMkRBq/urn6A9Q== Received: from BL2NAM02FT005.eop-nam02.prod.protection.outlook.com (10.152.76.59) by BL2NAM02HT031.eop-nam02.prod.protection.outlook.com (10.152.76.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.11; Thu, 7 Mar 2019 16:11:09 +0000 Received: from MWHPR06MB2861.namprd06.prod.outlook.com (10.152.76.60) by BL2NAM02FT005.mail.protection.outlook.com (10.152.76.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1643.11 via Frontend Transport; Thu, 7 Mar 2019 16:11:09 +0000 Received: from MWHPR06MB2861.namprd06.prod.outlook.com ([fe80::89d7:96ba:7665:9963]) by MWHPR06MB2861.namprd06.prod.outlook.com ([fe80::89d7:96ba:7665:9963%10]) with mapi id 15.20.1665.020; Thu, 7 Mar 2019 16:11:08 +0000 To: Anatol Belski , Dmitry Stogov , PHP internals CC: Joe Watkins Thread-Topic: [PHP-DEV] [RFC] JIT Thread-Index: AQHUuUlqVOVjmKFgoEm1MWGJHDXwwaXdx3iAgA4Vp5KAAAKqgIAAB5EAgAr+gfCABmj8z4AAeB+AgAK8cqU= Date: Thu, 7 Mar 2019 16:11:08 +0000 Message-ID: References: <12bd8940-26e8-9e61-b8ff-130eece60283@zend.com> <400f7a1c-ceee-4215-67a4-1959fea5263e@zend.com>, , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:E805E13CE6842166698F46C3317016E95710D77632FF81A2E0E8B1CAB5FD6359;UpperCasedChecksum:530D02CA2DC82B342FD40CE3FCEDF0E67D3D4F6FD15BBC14ABF2E36FD5D9571F;SizeAsReceived:7459;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [fy0JsHTdNa7hfdOkhyPBEhyt6BTpvqWp] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031323274)(2017031324274)(1601125500)(1603101475)(1701031045);SRVR:BL2NAM02HT031; x-ms-traffictypediagnostic: BL2NAM02HT031: x-microsoft-antispam-message-info: aY7byb3PU+12FMZV19a+ASJLpt4G+DGeVJ+ERtB4AILKbSlQ1w2w03FcSRz+8f9c Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: d3453fc7-c56e-464a-eae0-08d6a317824f X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2019 16:11:08.4373 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2NAM02HT031 Subject: Re: [PHP-DEV] [RFC] JIT From: theodorejb@outlook.com (Theodore Brown) On Tuesday, March 5, 2019 3:52 PM, Anatol Belski wrote:=0A= =0A= > > On Thursday, January 31, 2019 12:43 PM, Dmitry Stogov wrote:=0A= > > > Hi Internals,=0A= > > >=0A= > > > I'm glad to finally propose including JIT into PHP.=0A= > > >=0A= > > > https://wiki.php.net/rfc/jit=0A= > > >=0A= > > > In the current state it may be included both into PHP-8, where we are= =0A= > > > going to continue active improvement, and into PHP-7.4, as an=0A= > > > experimental feature.=0A= > > >=0A= > > > Thanks. Dmitry.=0A= >=0A= > On Tuesday, March 5, 2019 3:38 PM, Dmitry Stogov wrote:= =0A= >=0A= > > JIT also works for non-ZTS PHP Windows builds now.=0A= > >=0A= > > Thanks. Dmitry.=0A= >=0A= > I've uploaded a build from the latest branch state=0A= > https://windows.php.net/downloads/snaps/ostc/jit-dynasm/20190305/,=0A= > NTS/x64/SSE2/PGO. For PGO training, I've omitted some apps like=0A= > Drupal/Symfony, as they're not yet compatible with 8.0, still a=0A= > slight improvement with Zend/bench.php does show.=0A= >=0A= > Thanks=0A= >=0A= > Anatol=0A= =0A= I downloaded the Windows build and added the following settings to php.ini:= =0A= opcache.jit_buffer_size=3D10000000=0A= opcache.jit=3D1205=0A= =0A= I'm not sure if these are ideal settings or not, but they produced a=0A= nearly 3x speed improvement in the spectral-norm benchmark with $n=3D100=0A= (https://benchmarksgame-team.pages.debian.net/benchmarksgame/program/spectr= alnorm-php-1.html).=0A= =0A= Unfortunately I can't test with our real-world app since it relies on=0A= the SQL Server extension (https://github.com/Microsoft/msphpsql)=0A= which doesn't support PHP 8 yet.=0A= =0A= I guess this would be one benefit to having the JIT be an experimental=0A= feature in PHP 7.4 - extensions will likely support it long before=0A= they support PHP 8 which will make it possible to test a lot more=0A= real-world use cases.=0A= =0A= Thanks, =0A= Theodore Brown=