Re: [PHP] Performance / AB issue?

2012-05-15 Thread Lars Nielsen
> >> On Fri, May 11, 2012 at 9:53 AM, Camilo Sperberg >> wrote: >>> >>> >>> Sent from my iPhone 5 Beta [Confidential use only] >>> >>> On 11 mei 2012, at 07:09, "Lars Nielsen" wrote: >>> > > On 10 mei 2012, at 23:26, Lars Nielsen wrote: > >> >>> >>> >>> Sent from

Re: [PHP] Performance / AB issue?

2012-05-15 Thread Lars Nielsen
> On Fri, May 11, 2012 at 9:53 AM, Camilo Sperberg > wrote: >> >> >> Sent from my iPhone 5 Beta [Confidential use only] >> >> On 11 mei 2012, at 07:09, "Lars Nielsen" wrote: >> >>> On 10 mei 2012, at 23:26, Lars Nielsen wrote: > >> >> >> Sent from my iPhone 5 Beta

Re: [PHP] Performance / AB issue?

2012-05-11 Thread Lars Nielsen
> On Fri, May 11, 2012 at 9:53 AM, Camilo Sperberg > wrote: >> >> >> Sent from my iPhone 5 Beta [Confidential use only] >> >> On 11 mei 2012, at 07:09, "Lars Nielsen" wrote: >> >>> On 10 mei 2012, at 23:26, Lars Nielsen wrote: > >> >> >> Sent from my iPhone 5 Beta

Re: [PHP] Performance / AB issue?

2012-05-11 Thread Mike Mackintosh
How is PHP running, fast-cgi, sapi, etc..? Is there anything in the error_log for apache? Could be an issue with prefork/worker. Thanks, Mike Mackintosh PHP, the drug of choice - www.highonphp.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Performance / AB issue?

2012-05-11 Thread Matijn Woudt
On Fri, May 11, 2012 at 9:53 AM, Camilo Sperberg wrote: > > > Sent from my iPhone 5 Beta [Confidential use only] > > On 11 mei 2012, at 07:09, "Lars Nielsen" wrote: > >> >>> >>> On 10 mei 2012, at 23:26, Lars Nielsen wrote: >>> > > > Sent from my iPhone 5 Beta [Confidential use o

Re: [PHP] Performance / AB issue?

2012-05-11 Thread Camilo Sperberg
Sent from my iPhone 5 Beta [Confidential use only] On 11 mei 2012, at 07:09, "Lars Nielsen" wrote: > >> >> On 10 mei 2012, at 23:26, Lars Nielsen wrote: >> >>> Sent from my iPhone 5 Beta [Confidential use only] On 10 mei 2012, at 17:40, Matijn Woudt wrote:

Re: [PHP] Performance / AB issue?

2012-05-10 Thread Lars Nielsen
> > On 10 mei 2012, at 23:26, Lars Nielsen wrote: > >> >>> >>> >>> Sent from my iPhone 5 Beta [Confidential use only] >>> >>> On 10 mei 2012, at 17:40, Matijn Woudt wrote: >>> On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen wrote: > Hi there, > > I have apache-2.22/php 5.3.10 set

Re: [PHP] Performance / AB issue?

2012-05-10 Thread Camilo Sperberg
On 10 mei 2012, at 23:26, Lars Nielsen wrote: > >> >> >> Sent from my iPhone 5 Beta [Confidential use only] >> >> On 10 mei 2012, at 17:40, Matijn Woudt wrote: >> >>> On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen wrote: Hi there, I have apache-2.22/php 5.3.10 set up on a de

Re: [PHP] Performance / AB issue?

2012-05-10 Thread Matijn Woudt
On Thu, May 10, 2012 at 11:26 PM, Lars Nielsen wrote: > >> >> >> Sent from my iPhone 5 Beta [Confidential use only] >> >> On 10 mei 2012, at 17:40, Matijn Woudt wrote: >> >>> On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen wrote: Hi there, I have apache-2.22/php 5.3.10 set up on a d

Re: [PHP] Performance / AB issue?

2012-05-10 Thread Lars Nielsen
> > > Sent from my iPhone 5 Beta [Confidential use only] > > On 10 mei 2012, at 17:40, Matijn Woudt wrote: > >> On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen wrote: >>> Hi there, >>> >>> I have apache-2.22/php 5.3.10 set up on a dedicated server but I have a >>> strange issue. >>> >>> I have mad

Re: [PHP] Performance / AB issue?

2012-05-10 Thread Camilo Sperberg
Sent from my iPhone 5 Beta [Confidential use only] On 10 mei 2012, at 17:40, Matijn Woudt wrote: > On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen wrote: >> Hi there, >> >> I have apache-2.22/php 5.3.10 set up on a dedicated server but I have a >> strange issue. >> >> I have made a Drupal 7 s

Re: [PHP] Performance / AB issue?

2012-05-10 Thread Matijn Woudt
On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen wrote: > Hi there, > > I have apache-2.22/php 5.3.10 set up on a dedicated server but I have a > strange issue. > > I have made a Drupal 7 site with a mysql db. > > If I stress-test the site with : ab -c 1 -n 150 http://sitename/ it works > fine. > If

[PHP] Performance / AB issue?

2012-05-10 Thread Lars Nielsen
Hi there, I have apache-2.22/php 5.3.10 set up on a dedicated server but I have a strange issue. I have made a Drupal 7 site with a mysql db. If I stress-test the site with : ab -c 1 -n 150 http://sitename/ it works fine. If I stress-test the site with : ab -c 2 -n 20 http://sitename/ it kills a

Re: [PHP] Performance gain when not using prepared statements?

2011-06-17 Thread Eric Butera
On Fri, Jun 17, 2011 at 4:55 AM, Vitalii Demianets wrote: > On Friday 17 June 2011 04:50:00 Daevid Vincent wrote: >> > I've seen too many people over the years try and rally against common >> > sense practices like using prepared statements for perhaps a marginal >> > gain of performance on one pa

[PHP] Performance gain when not using prepared statements?

2011-06-17 Thread Vitalii Demianets
On Friday 17 June 2011 04:50:00 Daevid Vincent wrote: > > I've seen too many people over the years try and rally against common > > sense practices like using prepared statements for perhaps a marginal > > gain of performance on one page while their load averages are 0,0,0. > > Agreed. The ONLY tim

Re: [PHP] Performance Improvement on Calling C++ executable from PHP

2010-12-20 Thread Daniel P. Brown
On Sun, Dec 19, 2010 at 15:35, Shiplu wrote: > === > Recently I  my this php-general doesn't accept my mail for some > reason. So I send it again from anther email >

[PHP] Performance Improvement on Calling C++ executable from PHP

2010-12-19 Thread Shiplu
=== Recently I my this php-general doesn't accept my mail for some reason. So I send it again from anther email === Hello Everybody, I am devel

[PHP] Performance Improvement on Calling C++ executable from PHP

2010-12-19 Thread shiplu
Hello Everybody, I am developing a php application that interfaces with an external executable binary. The program is written in C++. I open the program (say a.out) using proc_open. Write some command at its stdin and fetch data stdout. Then close the program. The timing of only "a.out" is real 4

Re: [PHP] Performance of while(true) loop

2009-09-10 Thread Jim Lucas
APseudoUtopia wrote: > Hey list, > > I have a php cli script that listens on a UDP socket and, when data is > sent to the socket, the script inserts it into a database. I'm using > the real BSD socket functions, not fsock. > > The script runs socket_create(), then socket_bind(). Then it starts a

Re: [PHP] Performance of while(true) loop

2009-09-09 Thread Ben Dunlap
I have a php cli script that listens on a UDP socket and, when data is [8<] >> So I think the the MSG_WAITALL is causing it to block until incoming >> data connection is closed (it never reaches the 512 byte mark before [8<] > your "clients" are not maintaining an open connection to the socket

Re: [PHP] Performance of while(true) loop

2009-09-09 Thread Eddie Drapkin
On Wed, Sep 9, 2009 at 10:53 PM, APseudoUtopia wrote: > On Wed, Sep 9, 2009 at 10:39 PM, Eddie Drapkin wrote: >> On Wed, Sep 9, 2009 at 10:32 PM, APseudoUtopia >> wrote: >>> Hey list, >>> >>> I have a php cli script that listens on a UDP socket and, when data is >>> sent to the socket, the scrip

Re: [PHP] Performance of while(true) loop

2009-09-09 Thread APseudoUtopia
On Wed, Sep 9, 2009 at 10:39 PM, Eddie Drapkin wrote: > On Wed, Sep 9, 2009 at 10:32 PM, APseudoUtopia > wrote: >> Hey list, >> >> I have a php cli script that listens on a UDP socket and, when data is >> sent to the socket, the script inserts it into a database. I'm using >> the real BSD socket

Re: [PHP] Performance of while(true) loop

2009-09-09 Thread Eddie Drapkin
On Wed, Sep 9, 2009 at 10:32 PM, APseudoUtopia wrote: > Hey list, > > I have a php cli script that listens on a UDP socket and, when data is > sent to the socket, the script inserts it into a database. I'm using > the real BSD socket functions, not fsock. > > The script runs socket_create(), then

[PHP] Performance of while(true) loop

2009-09-09 Thread APseudoUtopia
Hey list, I have a php cli script that listens on a UDP socket and, when data is sent to the socket, the script inserts it into a database. I'm using the real BSD socket functions, not fsock. The script runs socket_create(), then socket_bind(). Then it starts a while(TRUE) loop. Within the loop,

Re: [PHP] PHP performance profiling

2008-11-18 Thread TG
- Original Message - From: "Eric Butera" <[EMAIL PROTECTED]> To: Gryffyn <[EMAIL PROTECTED]> Cc: php-general@lists.php.net Date: Tue, 18 Nov 2008 12:16:04 -0500 Subject: Re: [PHP] PHP performance profiling > On Tue, Nov 18, 2008 at 10:11 AM, Gryffyn > <

Re: [PHP] PHP performance profiling

2008-11-18 Thread Eric Butera
On Tue, Nov 18, 2008 at 10:11 AM, Gryffyn <[EMAIL PROTECTED]> wrote: > I did a search and didn't find anything really astounding sounding, so I > wanted to ask for some "live" recommendations from the crowd here. > > I was wondering if anyone had used FirePHP with Firebug or could recommend a > goo

[PHP] Re: PHP performance profiling

2008-11-18 Thread Nathan Rixham
Gryffyn wrote: I did a search and didn't find anything really astounding sounding, so I wanted to ask for some "live" recommendations from the crowd here. I was wondering if anyone had used FirePHP with Firebug or could recommend a good profiling method for figuring out where the slow parts of

Re: [PHP] PHP performance profiling

2008-11-18 Thread Richard Heyes
> I'm curious about solutions that don't require installing something on the > server side, since that's not usually an option with shared web hosting and > all. Since PHP runs on the server, as part of the webserver, I think it will be inevitable that you'll need to install something on your serv

[PHP] PHP performance profiling

2008-11-18 Thread Gryffyn
I did a search and didn't find anything really astounding sounding, so I wanted to ask for some "live" recommendations from the crowd here. I was wondering if anyone had used FirePHP with Firebug or could recommend a good profiling method for figuring out where the slow parts of your PHP code a

RE: [PHP] & performance issues

2008-04-18 Thread Ford, Mike
On 17 April 2008 11:57, Bojan Tesanovic advised: > in PHP5 by default Objects are passed by reference Please stop repeating this -- erm -- inexactitude. In PHP5, objects are passed around by their handle, *not* as a reference. Most of the time, this has the same effect, as you are addressing the

Re: [PHP] & performance issues

2008-04-17 Thread Eric Butera
On Thu, Apr 17, 2008 at 7:10 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Thu, Apr 17, 2008 at 11:51 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > > > > > > > > > On Thu, Apr 17, 2008 at 12:00 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > > On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic <[

Re: [PHP] & performance issues

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 11:51 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Thu, Apr 17, 2008 at 12:00 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic <[EMAIL PROTECTED]> > > wrote: > > > > > > > in PHP5 by default Objects are passed by refere

Re: [PHP] & performance issues

2008-04-17 Thread Eric Butera
On Thu, Apr 17, 2008 at 12:00 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic <[EMAIL PROTECTED]> > wrote: > > > > in PHP5 by default Objects are passed by reference and as you can see at > > this graph passing array by reference in PHP5 is slower >

Re: [PHP] & performance issues

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic <[EMAIL PROTECTED]> wrote: > in PHP5 by default Objects are passed by reference and as you can see at > this graph passing array by reference in PHP5 is slower > http://nathan.moxune.com/arrayVsArrayIteratorReport.php wow, thats hilarious, thats m

Re: [PHP] & performance issues

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 12:14 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > If it's faster, it's faster so that would suggest a performance gain... > but as many will tell you, and you most likely already know... is the > gain worth the effort? BTW, rote replacement of references like that, > m

Re: [PHP] & performance issues

2008-04-17 Thread Bojan Tesanovic
On Apr 17, 2008, at 5:37 AM, Nathan Nobbe wrote: all, i have heard from various sources that using the & in php can at times be costly, and therefore, it should not be used when it is not needed. for example, passing an array by reference because you think youre passing the actual array

Re: [PHP] & performance issues

2008-04-16 Thread Robert Cummings
On Wed, 2008-04-16 at 23:37 -0400, Nathan Nobbe wrote: > all, > > i have heard from various sources that using the & in php can at times be > costly, and therefore, it should not be used when it is not needed. for > example, passing an array by reference because you think youre passing the > act

[PHP] & performance issues

2008-04-16 Thread Nathan Nobbe
all, i have heard from various sources that using the & in php can at times be costly, and therefore, it should not be used when it is not needed. for example, passing an array by reference because you think youre passing the actual array is not a good idea. only pass it by reference if a modifi

RES: [PHP] PHP performance

2008-03-05 Thread Thiago Pojda
De: Richard Lynch [mailto:[EMAIL PROTECTED] #1 Get the code, install it on a box in the closet, run valgrind --callgrind This will give you a stack trace of what gets called the MOST in your application. Look for "tall" trees in the call graph, and fix those first. #2 You can use 'ab' (apach

Re: [PHP] PHP performance

2008-03-04 Thread Richard Lynch
#1 Get the code, install it on a box in the closet, run valgrind --callgrind This will give you a stack trace of what gets called the MOST in your application. Look for "tall" trees in the call graph, and fix those first. #2 You can use 'ab' (apache benchmark) or similar to test it externally.

Re: [PHP] PHP performance

2008-03-04 Thread Jochem Maas
Eric Butera schreef: On Tue, Mar 4, 2008 at 5:51 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: Eric Butera schreef: ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi Jochem, This is probably true. I was just referring to an ol

Re: [PHP] PHP performance

2008-03-04 Thread Eric Butera
On Tue, Mar 4, 2008 at 5:51 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Eric Butera schreef: > > > > On Mon, Mar 3, 2008 at 6:18 PM, Chris <[EMAIL PROTECTED]> wrote: > >> > Just FYI, using ADODB will slow down the performance of your app. Any > >> > function calls cost against you and it all

Re: RES: [PHP] PHP performance

2008-03-04 Thread Nathan Rixham
Thiago Pojda wrote: -Mensagem original- De: Jochem Maas [mailto:[EMAIL PROTECTED] Eric Butera schreef: On Mon, Mar 3, 2008 at 6:18 PM, Chris <[EMAIL PROTECTED]> wrote: > Just FYI, using ADODB will slow down the performance of your app. Any > function calls cost against you and it al

RES: [PHP] PHP performance

2008-03-04 Thread Thiago Pojda
-Mensagem original- De: Jochem Maas [mailto:[EMAIL PROTECTED] Eric Butera schreef: > On Mon, Mar 3, 2008 at 6:18 PM, Chris <[EMAIL PROTECTED]> wrote: >> > Just FYI, using ADODB will slow down the performance of your app. >> Any > function calls cost against you and it all adds up. >> >

Re: [PHP] PHP performance

2008-03-04 Thread Jochem Maas
Eric Butera schreef: On Mon, Mar 3, 2008 at 6:18 PM, Chris <[EMAIL PROTECTED]> wrote: > Just FYI, using ADODB will slow down the performance of your app. Any > function calls cost against you and it all adds up. If you remove it, then you remove functionality - so before you go and rip it

Re: RES: [PHP] PHP performance

2008-03-03 Thread Chris
I have a copy of the files and database, but setting it up is not that simple. This vb.net is licensed and we don't have license for. If I could profile the app I'd be more than happy, but that's not going to happen anytime soon. What does the vb.net stuff do? Is it the frontend (eg for data-

Re: [PHP] PHP performance

2008-03-03 Thread Eric Butera
On Mon, Mar 3, 2008 at 9:21 PM, Chris <[EMAIL PROTECTED]> wrote: > > > These 'benefits' you talk about really only matter if you switch your > > databases. If this app is written against Oracle and they never plan > > to change it, then it isn't a bad idea to cut out that fat and just > > deal

Re: [PHP] PHP performance

2008-03-03 Thread Chris
These 'benefits' you talk about really only matter if you switch your databases. If this app is written against Oracle and they never plan to change it, then it isn't a bad idea to cut out that fat and just deal with the native interface. Even writing wrapper functions that are very basic that

Re: [PHP] PHP performance

2008-03-03 Thread Eric Butera
On Mon, Mar 3, 2008 at 6:18 PM, Chris <[EMAIL PROTECTED]> wrote: > > > Just FYI, using ADODB will slow down the performance of your app. Any > > function calls cost against you and it all adds up. > > If you remove it, then you remove functionality - so before you go and > rip it out, check wh

Re: [PHP] PHP performance

2008-03-03 Thread Chris
Just FYI, using ADODB will slow down the performance of your app. Any function calls cost against you and it all adds up. If you remove it, then you remove functionality - so before you go and rip it out, check whether it's the bottleneck using xdebug. I use an abstraction layer all the ti

Re: [PHP] PHP performance

2008-03-03 Thread Aschwin Wesselius
Thiago Pojda wrote: Guys, I've been asked to build a performance report for a PHP app. I can't profile it using automated tools as I don't have full access to the server, only to the application itself. It's a PHP4 Object-Oriented app, which uses ADODB as abstraction layer with a Oracle 8i

RES: [PHP] PHP performance

2008-03-03 Thread Thiago Pojda
-Mensagem original- De: Eric Butera [mailto:[EMAIL PROTECTED] On Mon, Mar 3, 2008 at 12:09 PM, Thiago Pojda <[EMAIL PROTECTED]> wrote: > Guys, > > I've been asked to build a performance report for a PHP app. I can't > profile it using automated tools as I don't have full access to th

Re: [PHP] PHP performance

2008-03-03 Thread Eric Butera
On Mon, Mar 3, 2008 at 12:09 PM, Thiago Pojda <[EMAIL PROTECTED]> wrote: > Guys, > > I've been asked to build a performance report for a PHP app. I can't profile > it using automated tools as I don't have full access to the server, only to > the application itself. > > It's a PHP4 Object-Orient

[PHP] PHP performance

2008-03-03 Thread Thiago Pojda
Guys, I've been asked to build a performance report for a PHP app. I can't profile it using automated tools as I don't have full access to the server, only to the application itself. It's a PHP4 Object-Oriented app, which uses ADODB as abstraction layer with a Oracle 8i databse. The system also

Re: [PHP] Performance Problem

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 4:29 PM, Adriano Manocchia <[EMAIL PROTECTED]> wrote: > Whoa. No need to get snippy. I was being sincere in my gratitude for > the suggestions. If nothing else, I'm sure I'll be making more use of > Xdebug in the future. I'm not being snippy at all. I was admitting m

Re: [PHP] Performance Problem

2008-02-27 Thread Ray Hauge
Adriano Manocchia wrote: Whoa. No need to get snippy. I was being sincere in my gratitude for the suggestions. If nothing else, I'm sure I'll be making more use of Xdebug in the future. On Feb 27, 2008, at 3:55 PM, Shawn McKenzie wrote: Adriano Manocchia wrote: Well, I just spent more time

Re: [PHP] Performance Problem

2008-02-27 Thread Shawn McKenzie
Doh, sorry... I was jokingly replying to: "I was going to suggest that it was most likely an Apache or DNS issue as opposed to PHP, but after I realized I missed that your "php tests were run on a single-line PHP script that simply echoed 'hi' so it couldn't get much simpler than that," I figured

Re: [PHP] Performance Problem

2008-02-27 Thread Adriano Manocchia
Whoa. No need to get snippy. I was being sincere in my gratitude for the suggestions. If nothing else, I'm sure I'll be making more use of Xdebug in the future. On Feb 27, 2008, at 3:55 PM, Shawn McKenzie wrote: Adriano Manocchia wrote: Well, I just spent more time messing with httpd's con

Re: [PHP] Performance Problem

2008-02-27 Thread Shawn McKenzie
Adriano Manocchia wrote: > Well, I just spent more time messing with httpd's conf and it the > problem seems to have resolved itself by turning off hostname lookups. I > know there's overhead associated with it, but I don't really understand > why it only affected PHP, and so drastically. At any ra

Re: [PHP] Performance Problem

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 2:50 PM, Adriano Manocchia <[EMAIL PROTECTED]> wrote: > Well, I just spent more time messing with httpd's conf and it the > problem seems to have resolved itself by turning off hostname lookups. > I know there's overhead associated with it, but I don't really > understand

Re: [PHP] Performance Problem

2008-02-27 Thread Eric Butera
On Wed, Feb 27, 2008 at 2:34 PM, Adriano Manocchia <[EMAIL PROTECTED]> wrote: > OK. I just went through about 10 minutes' worth of cachegrinds, > including several httperf tests on that empty php file (which had the > usual poor results). According to the cachegrind files, nothing > (including t

Re: [PHP] Performance Problem

2008-02-27 Thread Adriano Manocchia
Well, I just spent more time messing with httpd's conf and it the problem seems to have resolved itself by turning off hostname lookups. I know there's overhead associated with it, but I don't really understand why it only affected PHP, and so drastically. At any rate, I guess this issue is

Re: [PHP] Performance Problem

2008-02-27 Thread Adriano Manocchia
OK. I just went through about 10 minutes' worth of cachegrinds, including several httperf tests on that empty php file (which had the usual poor results). According to the cachegrind files, nothing (including the other active web pages) took more than 15ms and the empty php file never excee

Re: [PHP] Performance Problem

2008-02-27 Thread Adriano Manocchia
I'm trying to get it working but it doesn't seem to want to write the profile info at the moment. Correct me if I'm wrong, but wouldn't this just show problems within actual code? If the problem is occurring on a PHP file with no PHP in it whatsoever, it seems to fall outside the scope of w

Re: [PHP] Performance Problem

2008-02-27 Thread Eric Butera
On Wed, Feb 27, 2008 at 12:39 PM, Adriano Manocchia <[EMAIL PROTECTED]> wrote: > Hi all, > > I've been chasing what I think is the same performance issue for about > a year and it's driving me batty. First off, the server is a dual core > 2.8 P4 with 2G RAM running RHEL5 hosted at The Planet and

Re: [PHP] Performance Problem

2008-02-27 Thread Adriano Manocchia
I know my original post was long-winded, but I did mention that my php tests were run on a single-line PHP script that simply echoed "hi" so it couldn't get much simpler than that. But for thoroughness' sake, I've run the tests against a test file with a php extension with no PHP code at al

Re: [PHP] Performance Problem

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 12:39 PM, Adriano Manocchia <[EMAIL PROTECTED]> wrote: > Hi all, > > I've been chasing what I think is the same performance issue for about > a year and it's driving me batty. First off, the server is a dual core > 2.8 P4 with 2G RAM running RHEL5 hosted at The Planet and

[PHP] Performance Problem

2008-02-27 Thread Adriano Manocchia
Hi all, I've been chasing what I think is the same performance issue for about a year and it's driving me batty. First off, the server is a dual core 2.8 P4 with 2G RAM running RHEL5 hosted at The Planet and is under very light load. This problem started last year while the server was RHEL4 and I

Re: [PHP] performance/load testing ...

2008-01-22 Thread Richard Lynch
apache benchmark, aka "ab" comes with apache and lets you hit your server as many times as you want. Also see wget and valgrind/callgrind For Windows users, there's something called SuperSmack or some equally silly name... :-) On Mon, January 21, 2008 3:50 am, Jochem Maas wrote: > hi guys, > > I

Re: [PHP] performance/load testing ...

2008-01-21 Thread Eric Butera
On Jan 21, 2008 5:50 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Ron Rademaker schreef: > > Jochem Maas wrote: > >> Ron Rademaker schreef: > >>> Hi Jochem, > >>> > >>> Apache comes with an nice ab tool which stands for apache > >>> benchmarking. You can use this to benchmark stuff like concurrent

Re: [PHP] performance/load testing ...

2008-01-21 Thread Jochem Maas
Ron Rademaker schreef: Jochem Maas wrote: Ron Rademaker schreef: Hi Jochem, Apache comes with an nice ab tool which stands for apache benchmarking. You can use this to benchmark stuff like concurrent requests. indeed, I know ab, but it doesn't allow for a very realistic request 'spread'

Re: [PHP] performance/load testing ...

2008-01-21 Thread Ron Rademaker
Jochem Maas wrote: Ron Rademaker schreef: Hi Jochem, Apache comes with an nice ab tool which stands for apache benchmarking. You can use this to benchmark stuff like concurrent requests. indeed, I know ab, but it doesn't allow for a very realistic request 'spread' - at least as far as I k

Re: [PHP] performance/load testing ...

2008-01-21 Thread Jochem Maas
Ron Rademaker schreef: Hi Jochem, Apache comes with an nice ab tool which stands for apache benchmarking. You can use this to benchmark stuff like concurrent requests. indeed, I know ab, but it doesn't allow for a very realistic request 'spread' - at least as far as I know. I was hoping for

Re: [PHP] performance/load testing ...

2008-01-21 Thread Paul Scott
On Mon, 2008-01-21 at 10:50 +0100, Jochem Maas wrote: > Does anyone have any tips, urls, advice as to how to start > going about creating something like a 'test suite' for testing > high load performance of a website? > I went through a similar headache recently, and looked at a whole whack of t

[PHP] performance/load testing ...

2008-01-21 Thread Jochem Maas
hi guys, I need to do some performance testing for a site of mine. I want to compare performance of various combinations of using APC, Squid, Apache/LightHTTPD mod_php/fastcgi. all very well I can build the various setups but I'm stuck as to how to go about recreating realistic load on the machi

Re: [PHP] Performance question for table updating

2007-11-27 Thread Andrew Ballard
On Nov 24, 2007 2:32 AM, Jon Westcot <[EMAIL PROTECTED]> wrote: > Hi all: > > For those who've been following the saga, I'm working on an application > that needs to load > a data file consisting of approximately 29,000 to 35,000 records in it (and > not short ones, > either) into several tab

Re: [PHP] Performance question for table updating

2007-11-25 Thread Chris
Eventually, I wind up with a query similar to: UPDATE table_01 SET field_a = 'New value here', updated=CURDATE() WHERE primary_key=12345 Even though you've solved it one way to work out the problem here would be to change it to a select query (unfortunately mysql can't explain

Re: [PHP] Performance question for table updating (SOLVED)

2007-11-24 Thread Robert Cummings
On Sat, 2007-11-24 at 04:03 -0700, Jon Westcot wrote: > > Moral of the story? Two, really. First, ensure you always reference > values in the way most appropriate for their type. Second, don't make your > idiocy public by asking stupid questions on a public forum. What's the > quote (prob

RE: [PHP] Performance question for table updating (SOLVED)

2007-11-24 Thread Bastien Koert
Could there be some performance gain by uploading the data to another table and then update / insert via sql? bastien > From: [EMAIL PROTECTED] > To: php-general@lists.php.net > Date: Sat, 24 Nov 2007 04:03:53 -0700 > Subject: Re: [PHP]

Re: [PHP] Performance question for table updating (SOLVED)

2007-11-24 Thread Jon Westcot
Hi Rob, et al.: - Original Message - From: "Andrés Robinet" <[EMAIL PROTECTED]> > > -Original Message- > > From: Jon Westcot [mailto:[EMAIL PROTECTED] > > > > :: gigantic snip here:: > > > > So, long story short (oops -- too late!), what's the concensus > > among the learned as

RE: [PHP] Performance question for table updating

2007-11-24 Thread Andrés Robinet
> -Original Message- > From: Jon Westcot [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 24, 2007 4:32 AM > To: PHP General > Subject: [PHP] Performance question for table updating > > Hi all: > > For those who've been following the saga, I&#x

[PHP] Performance question for table updating

2007-11-23 Thread Jon Westcot
Hi all: For those who've been following the saga, I'm working on an application that needs to load a data file consisting of approximately 29,000 to 35,000 records in it (and not short ones, either) into several tables. I'm using MySQL as the database. I've noticed a really horrible p

Re: [PHP] Performance of PHP

2007-11-06 Thread Per Jessen
Merlin wrote: > Hi there, > > I am doing some image cropping of about 40.000 files with php. If you're worried about performance, maybe why not use mogrify from ImageMagick? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

Re: [PHP] Performance of PHP

2007-11-06 Thread Sudheer Satyanarayana
Merlin wrote: Hi there, I am doing some image cropping of about 40.000 files with php. To do this I wrote a PHP file that does what I want and I did disable the timeout so I can call it via webbrowser and fire the script. There are two down sides I see: 1. One image takes about 0.25 s, so the w

[PHP] Performance of PHP

2007-11-06 Thread Merlin
Hi there, I am doing some image cropping of about 40.000 files with php. To do this I wrote a PHP file that does what I want and I did disable the timeout so I can call it via webbrowser and fire the script. There are two down sides I see: 1. One image takes about 0.25 s, so the whole process wo

Re: [PHP] PHP Performance and System Load

2007-07-21 Thread Nathan Nobbe
on the point of class size; i think this is more a design issue than a performance issue. i worked at a place where we had several files w/ classes that were several thousand lines in size. one i remember was over 6000 lines long. personally i would never let something grow that large, but all im

Re: [PHP] PHP Performance and System Load

2007-07-20 Thread Larry Garfield
On Friday 20 July 2007, Sascha Braun, CEO @ ejackup.com wrote: > Dear People, > The webserver does only contain the webspace filesystem structure as > well as 5 line of PHP Code dummies, for every document in the content > management system, to avoid the usage of mod_rewrite. I inherited a CMS at

Re: [PHP] Re: PHP Performance and System Load

2007-07-20 Thread Sancar Saran
Hi, I had lots of loop in my code. My gain was %4 to %6 and I say "may gain another %10". Of course your millage was different than me Regards Sancar On Saturday 21 July 2007 01:03:45 Richard Lynch wrote: > On Fri, July 20, 2007 4:16 am, Colin Guthrie wrote: > > Sancar Saran wrote: > >> Anoth

Re: [PHP] Re: PHP Performance and System Load

2007-07-20 Thread Richard Lynch
On Fri, July 20, 2007 4:16 am, Colin Guthrie wrote: > Sancar Saran wrote: >> Another simple performance tip. >> >> Most of for examples of php look like this >> for($x=0;$x> >> This is bad. In every cycle you call sizeof >> >> this was good >> $intSize = sizeof($arrSometing); >> for($x=0;$x<$intSiz

Re: [PHP] PHP Performance and System Load

2007-07-20 Thread Richard Lynch
On Fri, July 20, 2007 2:25 am, Sascha Braun, CEO @ ejackup.com wrote: > I developed a very large Application, which has at the moment strong > performace problems, while pages are loaded. Look into valgrind/callgrind to get an idea of where all your time is being spent. Optimizing something that

[PHP] Re: PHP Performance and System Load

2007-07-20 Thread Colin Guthrie
Sancar Saran wrote: > Another simple performance tip. > > Most of for examples of php look like this > for($x=0;$x > This is bad. In every cycle you call sizeof > > this was good > $intSize = sizeof($arrSometing); > for($x=0;$x<$intSize;$x++) > > if u use. > for($x=0;$x<$intSiz;++$x). You may g

Re: [PHP] PHP Performance and System Load

2007-07-20 Thread Sancar Saran
Hi, What is your desired performance level on what kind of hardware. Have look memcached, General performance tip do not include more than 10 files a page load. I had CMS project too. Sometimes it uses 10 MB of php memory (generally uses 3 mb of php memory). It uses Memcached in every way pos

[PHP] PHP Performance and System Load

2007-07-20 Thread Sascha Braun, CEO @ ejackup.com
Dear People, I developed a very large Application, which has at the moment strong performace problems, while pages are loaded. At the moment I am trying to lower the number of filesystem calls as much as I can. I was able allready to lower the rate of filesystem calls from round about 260 calls,

Re: [PHP] performance down

2007-04-24 Thread Jochem Maas
Tijnema ! wrote: > On 4/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Hello everyone, >> >> recently we tested upgrading our systems from: >>apache 2.0.55 >>php 5.1.6 >>eacclerator 0.9.5 >> to: >>apache 2.2.3 >>php 5.2.0 >>eaccelerator 0.9.5

Re: [PHP] performance down

2007-04-24 Thread Tijnema !
On 4/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello everyone, recently we tested upgrading our systems from: apache 2.0.55 php 5.1.6 eacclerator 0.9.5 to: apache 2.2.3 php 5.2.0 eaccelerator 0.9.5 but we always get worse performance than befo

[PHP] performance down

2007-04-24 Thread [EMAIL PROTECTED]
Hello everyone, recently we tested upgrading our systems from: apache 2.0.55 php 5.1.6 eacclerator 0.9.5 to: apache 2.2.3 php 5.2.0 eaccelerator 0.9.5 but we always get worse performance than before. So maybe it is the newer apache version which

Re: [PHP] Performance: While or For loop

2007-03-27 Thread Tijnema !
On 3/27/07, Travis Doherty <[EMAIL PROTECTED]> wrote: Jake Gardner wrote: > He said if you run the /script/ itself 1000 times, not a loop with 1000 > iterations. This is quite possible; I am fairly certain there are > websites > out there that get accessed well over 1000 times a minute, yes? > >

Re: [PHP] Performance: While or For loop

2007-03-26 Thread Travis Doherty
Jake Gardner wrote: > He said if you run the /script/ itself 1000 times, not a loop with 1000 > iterations. This is quite possible; I am fairly certain there are > websites > out there that get accessed well over 1000 times a minute, yes? > > So every minute, that website is saving a total of 2.6

Re: [PHP] Performance: While or For loop

2007-03-26 Thread Jake Gardner
He said if you run the /script/ itself 1000 times, not a loop with 1000 iterations. This is quite possible; I am fairly certain there are websites out there that get accessed well over 1000 times a minute, yes? So every minute, that website is saving a total of 2.6 seconds to do... whatever it is

Re: [PHP] Performance: While or For loop

2007-03-26 Thread Richard Lynch
On Sat, March 24, 2007 4:52 am, Tijnema ! wrote: >> That means that at 1000 iterations, you are "saving" how much time? >> >> .00026 seconds? >> .4 seconds? >> >> Puhleaze. > > Well, if you execute this script 1000 times, you would get a > difference of 2.6 seconds? > But if every microseconds

  1   2   3   >