Re: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores

2015-11-30 Thread Pierre Joye
On Sun, Nov 29, 2015 at 7:44 PM, Lester Caine wrote: > On 29/11/15 04:44, Levi Morrison wrote: >>> A multicore php8 or php9? Wouldn't be cool >> Honestly, PHP is a poor language for parallel computing. This is >> because PHP is a web-focused language. The the most common setup ends >> up with

Re: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores

2015-11-29 Thread Lester Caine
On 29/11/15 04:44, Levi Morrison wrote: >> A multicore php8 or php9? Wouldn't be cool > Honestly, PHP is a poor language for parallel computing. This is > because PHP is a web-focused language. The the most common setup ends > up with a blocking request on a network call. What we really need i

Re: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores

2015-11-28 Thread Levi Morrison
> A multicore php8 or php9? Wouldn't be cool Honestly, PHP is a poor language for parallel computing. This is because PHP is a web-focused language. The the most common setup ends up with a blocking request on a network call. What we really need is an improved asynchronous model so that we ca

Re: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores

2015-11-28 Thread Johannes Schlüter
On Fri, 2015-11-27 at 21:35 +0100, Jan Ehrhardt wrote: > In most cases that is true. But not always: we have an application that > uses PHP for matching a lot of profiles with a couple of hundred job > opportunities. Despite a lot of optimizations it drills down to a single > PHP thread doing the b

Re: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores

2015-11-28 Thread Martin Keckeis
Am 27.11.2015 9:35 nachm. schrieb "Jan Ehrhardt" : > > Johannes Schlüter in php.internals (Fri, 27 Nov 2015 14:41:33 +0100): > >On Fri, 2015-11-27 at 11:02 +0100, Pascal KISSIAN wrote: > >> > >> I made a simple test to know if it was possible to speed-up php > >> performance by using parallel progr

RE: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores

2015-11-27 Thread Anatol Belski
Hi Pascal, > -Original Message- > From: Pascal KISSIAN [mailto:php-mailing-l...@lool.fr] > Sent: Friday, November 27, 2015 11:03 AM > To: internals@lists.php.net > Subject: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for > php7 using 4 cores > Imp

Re: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores

2015-11-27 Thread Jan Ehrhardt
Johannes Schlüter in php.internals (Fri, 27 Nov 2015 14:41:33 +0100): >On Fri, 2015-11-27 at 11:02 +0100, Pascal KISSIAN wrote: >> >> I made a simple test to know if it was possible to speed-up php >> performance by using parallel programming. > >Your test runs a single PHP process. Mind that in a

Re: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores

2015-11-27 Thread Johannes Schlüter
ls@lists.php.net > Objet : Re: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for > php7 using 4 cores > > >Your test runs a single PHP process. Mind that in a typical deployment on a > >server you have quite a few parallel PHP processes already competing fo

RE: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores

2015-11-27 Thread Pascal KISSIAN
Hi Johannes, thanks for the answer, -Message d'origine- De : Johannes Schlüter [mailto:johan...@schlueters.de] Envoyé : vendredi 27 novembre 2015 14:42 À : Pascal KISSIAN Cc : internals@lists.php.net Objet : Re: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7

Re: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores

2015-11-27 Thread Johannes Schlüter
On Fri, 2015-11-27 at 11:02 +0100, Pascal KISSIAN wrote: > > I made a simple test to know if it was possible to speed-up php > performance > by using parallel programming. [...] > Use : > > OMP_NUM_THREADS=xx /path_to/php test_file.php Your test runs a single PHP process. Mind that in a typica

[PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores

2015-11-27 Thread Pascal KISSIAN
Hi everybody, I made a simple test to know if it was possible to speed-up php performance by using parallel programming. I modified 2 functions within ./ext/standard/array.c file of PHP-7.0.0RC7 to use openmp and added the -fopenmp flag to the compiler flags in the Makefile. I modified