On 2/14/19 3:02 AM, Eugene Leonovich wrote: > On Tue, Feb 5, 2019 at 6:06 PM Bruce Weirdan <weir...@gmail.com > <mailto:weir...@gmail.com>> wrote: > > On Tue, Feb 5, 2019 at 8:38 AM Dmitry Stogov <dmi...@zend.com > <mailto:dmi...@zend.com>> wrote: > > > PHP+optimizer (-dopcache.jit_buffer_size=0): 32.29s (100%) > > > PHP+optimizer+JIT (-dopcache.jit_buffer_size=50000000): 30.72s > (95.1%) > > > PHP+optimizer+minimalJIT (-dopcache.jit_buffer_size=50000000 > > > -dopcache.jit=1201): 29.95s (92.7%) > > > > It may be interesting to try -dopcache.jit=1235. It should JIT > only hot > > functions and requires some warm-up. > > For this use case 1201 was the fastest of all the options I tried > (including 1235). > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > > > Here are my results of benchmarking rybakit/msgpack.php: > > bench.php, w/o jit: > Total 9.8220 4.3121 > > bench.php, opcache.jit=1235 opcache.jit_buffer_size=256M: > Total 8.7255 3.3350 > > bench2.php, w/o jit: > pure msgpack: 2.2818 sec > pure msgpack packed: 2.1717 sec > > bench2.php, opcache.jit=1235 opcache.jit_buffer_size=256M: > pure msgpack: 1.5221 sec > pure msgpack packed: 1.4739 sec > > Details: https://gist.github.com/rybakit/bb551f962b706a9e08c995cf5ed9762f
1.3-1.5 times speed-up. Thanks for benchmarking. Dmitry.