[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

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

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 good

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 [EMAIL PROTECTED] wrote: I did a search

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' (apache

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

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. If you

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 all

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 adds up.

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 old

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.

[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

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-Oriented app,

RES: [PHP] PHP performance

2008-03-03 Thread Thiago Pojda
-Mensagem original- De: Eric Butera [mailto:[EMAIL PROTECTED] snip 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

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

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

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 whether

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

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 with the

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

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

[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] 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

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

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

[PHP] PHP performance

2004-08-10 Thread Ed Lazor
Any recommendations on how to make PHP run faster? I have a script pulling a lot of data from MySQL and generating reports and spitting out data (flush) as it's processing so I can see what's going on. It was taking around 10 seconds to process each order. I reduced the total number of orders

RE: [PHP] PHP performance

2004-08-10 Thread Alex Hogan
[snip] I figured PHP's memory limit per script at 8mb might be the bottleneck, so I upped it to 128, restarted apache, and reran the script. Increasing available memory had no effect. [/snip] This may have already been addressed, but did you index any key fields? alex hogan

RE: [PHP] PHP performance

2004-08-10 Thread Jay Blanchard
[snip] Any recommendations on how to make PHP run faster? [/snip] A multiple CPU box. (It's a legitimate answer!) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP performance

2004-08-10 Thread Matthew Sims
[snip] Any recommendations on how to make PHP run faster? [/snip] A multiple CPU box. (It's a legitimate answer!) I usually add more gerbils to my spinning wheel. -- --Matthew Sims --http://killermookie.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] PHP performance

2004-08-10 Thread Vail, Warren
, Warren Vail -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 12:16 PM To: Ed Lazor; [EMAIL PROTECTED] Subject: RE: [PHP] PHP performance [snip] Any recommendations on how to make PHP run faster? [/snip] A multiple CPU box. (It's

Re: [PHP] PHP performance

2004-08-10 Thread John Nichel
Jay Blanchard wrote: [snip] Any recommendations on how to make PHP run faster? [/snip] A multiple CPU box. (It's a legitimate answer!) Lot of good that did. I just threw 8 socket 7 AMD processors into a box, and PHP isn't even the slightest bit faster. -- John C. Nichel ÜberGeek KegWorks.com

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
-Original Message- This may have already been addressed, but did you index any key fields? I do have some indices created, but I'll check to see if there are more than can boost things. Thanks =) Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Good point Jay. Luckily the server has dual 2.4gh xeon's with 2gig of ram *grin* -Original Message- [snip] Any recommendations on how to make PHP run faster? [/snip] A multiple CPU box. (It's a legitimate answer!) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] PHP performance

2004-08-10 Thread Curt Zirzow
* Thus wrote Ed Lazor: Any recommendations on how to make PHP run faster? To help figure out which queries are running slow there is the php.ini setting: mysql.trace_mode=On Using this will have the php library analyze your queries and if any of them do table scans php will issue a warning

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Lot of good that did. I just threw 8 socket 7 AMD processors into a box, and PHP isn't even the slightest bit faster. Did you try a curveball when throwing the processors into the box? -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Thanks Vail, I'll check that out. -Ed -Original Message- If your problem is with a long running MySQL Query, and many of mine have been, I would suggest you read http://dev.mysql.com/doc/mysql/en/Optimizer_Issues.html Your objective is to make sure that all your database

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Ooo ahhh, thanks Curt =) -Original Message- To help figure out which queries are running slow there is the php.ini setting: mysql.trace_mode=On Using this will have the php library analyze your queries and if any of them do table scans php will issue a warning about it, which

RE: [PHP] PHP performance

2004-08-10 Thread Alex Hogan
Did you try a curveball when throwing the processors into the box? Processors like sliders... Can't lay off 'em.., can't hit 'em. alex hogan * The contents of this e-mail and any files transmitted with it are

RE: [PHP] PHP performance [solution]

2004-08-10 Thread Ed Lazor
I added more indexes. The 20 minute report just took 40 seconds *grin* Thanks Everyone, Ed -Original Message- From: Curt Zirzow [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 10, 2004 3:07 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP performance * Thus wrote Ed Lazor

RE: [PHP] PHP performance [solution]

2004-08-10 Thread Jason Davidson
, August 10, 2004 3:07 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP performance * Thus wrote Ed Lazor: Any recommendations on how to make PHP run faster? To help figure out which queries are running slow there is the php.ini setting: mysql.trace_mode=On Using

Re: [PHP] PHP performance

2004-08-10 Thread Matthew Runo
This is a great tip. Thanks! I've added it to my folder of tips to speed up PHP. Matthew Runo http://www.quabbo.com Quabbo Internet Services The only host with the Zend Performance Suite! On Aug 10, 2004, at 3:07 PM, Curt Zirzow wrote: * Thus wrote Ed Lazor: Any recommendations on how to make

RE: [PHP] PHP performance

2004-08-10 Thread Ed Lazor
Your tag line caught my attention - have any specs on performance boosts provided by Zend? The only host with the Zend Performance Suite! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP performance

2004-08-10 Thread Matthew Runo
Well, across the sites that are on our server at the moment we are seeing an average increase in PHP execution speed of 244% (I just ran a test). According to Zend if everyone of our clients were to use partial page caching and the like, we'd be seeing closer to a 1000% (10x) speedup.

Re: [PHP] php performance

2003-01-24 Thread Brent Baisley
It doesn't sound like you've testing to see where the bottleneck is. I would first recommend inserting some microtime() commands into you PHP code, like around your queries and blocks of PHP code. This will tell you what is taking the longest time and will point you in the right direction.

[PHP] php performance

2003-01-23 Thread arch
I'm running php4 on apache on linux. I'm having performance problems with php getting data from the mysql database. With one user at a given instant, performance is fine, even with the massive size of the data table. But when do very rudimentary load testing (basically, opening a few browser and

RE: [PHP] php performance

2003-01-23 Thread Chris McCluskey
I'm going to ask the really stupid question... Is mysql, php, apache running on the same box as the box you are using to test from? -Chris -Original Message- From: arch [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:42 PM To: [EMAIL PROTECTED] Subject: [PHP] php

Re: [PHP] php performance

2003-01-23 Thread arch
re using to test from? -Chris -Original Message- From: arch [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:42 PM To: [EMAIL PROTECTED] Subject: [PHP] php performance I'm running php4 on apache on linux. I'm having performance problems with php getting data from the mysql

Re: [PHP] php performance

2003-01-23 Thread John Wells
sql, php, apache running on the same box as the box you are using to test from? -Chris -Original Message- From: arch [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 1:42 PM To: [EMAIL PROTECTED] Subject: [PHP] php performance I'm running php4 on apache on linux. I'

[PHP] PHP-Performance

2003-01-03 Thread Fatih stnda
Do you know any resource about php performance? I wonder that can I use php+apache+oracle for a web site serving to many clients ( such as 10.000 ) at the same time? Fatih Üstündað Yöre Elektronik Yayýmcýlýk A.Þ. 0 212 234 00 90 -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP-Performance

2003-01-03 Thread Khalid El-Kary
Performance related issues depend on too many factors infact, however, PHP is known to be fast in itself (as an apache module), oracle is also known to be fast just like MySQL, but still it depends on what your app will do with the database, and how would you manage both your database and

Re: [PHP] PHP-Performance

2003-01-03 Thread Michael J. Pawlowsky
Get in touch with Zend. I bet they have benchmarks with their optimizer engine. http://www.zend.com/ Cheers, Mike *** REPLY SEPARATOR *** On 03/01/2003 at 3:56 PM Fatih Üstündað wrote: Do you know any resource about php performance? I wonder that can I use

[PHP] php performance

2002-05-15 Thread Michal Dvoracek
Hello, what is better syntax (for perfomance option, not code-style) e.g. html code out of php tags table ?php while (...) { ? tr td?php echo $something; ?/td tdtext/td /tr ?php } ? /table or ?php $table = 'table'; while (...) $table .=

[PHP] php performance (was: Single/Double Quotes)

2001-12-12 Thread Gerard Samuel
Thanks for the pointers... Another quick ?. Im rewriting a rather large script, and I read somewhere that an application would run slightly faster if you drop out of php to display html. So like ?php === php code goes here === ? /td/tr/table ?php === php code goes here === ? If the