Hi Theodore,

> -----Original Message-----
> From: Theodore Brown <theodor...@outlook.com>
> Sent: Thursday, March 7, 2019 5:11 PM
> To: Anatol Belski <a...@php.net>; Dmitry Stogov <dmi...@zend.com>; PHP
> internals <internals@lists.php.net>
> Cc: Joe Watkins <krak...@gmail.com>
> Subject: Re: [PHP-DEV] [RFC] JIT
> 
> On Tuesday, March 5, 2019 3:52 PM, Anatol Belski <a...@php.net> wrote:
> 
> > > On Thursday, January 31, 2019 12:43 PM, Dmitry Stogov wrote:
> > > > Hi Internals,
> > > >
> > > > I'm glad to finally propose including JIT into PHP.
> > > >
> > > > https://wiki.php.net/rfc/jit
> > > >
> > > > In the current state it may be included both into PHP-8, where we
> > > > are going to continue active improvement, and into PHP-7.4, as an
> > > > experimental feature.
> > > >
> > > > Thanks. Dmitry.
> >
> > On Tuesday, March 5, 2019 3:38 PM, Dmitry Stogov <dmi...@zend.com>
> wrote:
> >
> > > JIT also works for non-ZTS PHP Windows builds now.
> > >
> > > Thanks. Dmitry.
> >
> > I've uploaded a build from the latest branch state
> > https://windows.php.net/downloads/snaps/ostc/jit-dynasm/20190305/,
> > NTS/x64/SSE2/PGO. For PGO training, I've omitted some apps like
> > Drupal/Symfony, as they're not yet compatible with 8.0, still a slight
> > improvement with Zend/bench.php does show.
> >
> > Thanks
> >
> > Anatol
> 
> I downloaded the Windows build and added the following settings to php.ini:
> opcache.jit_buffer_size=10000000
> opcache.jit=1205
> 
> I'm not sure if these are ideal settings or not, but they produced a nearly 3x
> speed improvement in the spectral-norm benchmark with $n=100
> (https://benchmarksgame-
> team.pages.debian.net/benchmarksgame/program/spectralnorm-php-
> 1.html).
> 
> Unfortunately I can't test with our real-world app since it relies on the SQL
> Server extension (https://github.com/Microsoft/msphpsql)
> which doesn't support PHP 8 yet.
> 
> I guess this would be one benefit to having the JIT be an experimental
> feature in PHP 7.4 - extensions will likely support it long before they 
> support
> PHP 8 which will make it possible to test a lot more real-world use cases.
> 
Thanks for sharing this! Once the required extension becomes available, a 
snapshot could be created for the further tests. Otherwise I had Wordpress 
running and several other simple apps, so those can be used for the tests, too.

Regards

Anatol

Reply via email to