KBD

Keith Devens .com

Saturday, March 20, 2010 Flag waving
Mongol General: "What is best in life?" Conan: "To crush your enemies, to see them driven before you, and to... – Conan (Conan the Barbarian)
← URL questionI now have a Palm →

Daily link icon Thursday, January 16, 2003

PHP profiling

Hey, anyone know how to easily profile PHP code? I've just now for the first time been able to get a semi-realistic speed comparison between my weblog running under my CMS and my "legacy" weblog code. My CMS code seems to be about 30-40% slower. I expected some slowdown, of course, since my CMS is doing more in the background. Plus, it's totally not optimized and some parts of it are still hacked together - so I'm including modules I won't have to when the CMS is done, etc. But I took a larger hit than I expected and I'd like to see where my code is spending the most time so I understand what's going on.

Here's one article: http://www.onlamp.com/pub/a/php/2002/02/28/profilingphp.html

Oh man do I want this: http://pear.php.net/manual/en/pecl.apd.php

Here's the page for the PEAR Benchmark package featured in the above O'Reilly article.

← URL questionI now have a Palm →

Comments XML gif


Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

March 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 2 posts

Recent comments XML

I hate ASP.NET

I hate ASP... I was doing wonders​with PHP, then suddenly one of my​clients...

Johnies: Mar 17, 6:14am

Quantum physics and free will

I knew you were going to say that....

Tom Massey: Mar 15, 9:26pm

Generated in about 0.108s.

(Used 8 db queries)