Page 1 of 1
Benchmarking PHP
Posted: Wed Aug 23, 2006 3:37 pm
by Luke
What do you all use to benchmark your code? Is there a pretty widely-used library for php benchmarking? Thanks!
Posted: Wed Aug 23, 2006 3:39 pm
by RobertGonzalez
When you say benchmarking code, agianst what are you benchmarking?
Posted: Wed Aug 23, 2006 3:41 pm
by Luke
Well nothing in particular... basically whenever I want to find out "Is this quicker than that?" and those types of questions... I want to have something quick and easy to use. I figured there was already something built.
Posted: Wed Aug 23, 2006 3:41 pm
by Chris Corbyn
The XDebug extension since I get get information about stack traces, peak memory usage, execution time of functions, script profiling and other cool stuff. Ooohhh Ohhh, I do like it's enhanced var_dump() output too

Posted: Wed Aug 23, 2006 3:43 pm
by RobertGonzalez
If it is just a matter of time checking, usually I will run a test against the code itself, like by using different control structures, different functions, etc. I usually test them in the same script in reverse order twice so as to not make one test seem more favorable than another.
PS When did you go and get all mature and stuff anyway

Posted: Wed Aug 23, 2006 3:44 pm
by Luke
Everah wrote:PS When did you go and get all mature and stuff anyway

Who told I got mature? They are lying!

Posted: Wed Aug 23, 2006 3:46 pm
by RobertGonzalez
Just noticing your post quality, post count and post content. And the fact that you are severely close to losing your 'Thread Derailing' award. Not that any of us would mind (and not like I am not doing that even as I write), but I like this version of Ninja.
Posted: Wed Aug 23, 2006 6:15 pm
by feyd
Xdebug

Posted: Thu Aug 24, 2006 6:23 am
by Jenk
It would seem feyd and Ninja are slowly swapping personalities.

Posted: Thu Aug 24, 2006 7:11 am
by Ollie Saunders
Jenk wrote:It would seem feyd and Ninja are slowly swapping personalities.

lmao
Re: Benchmarking PHP
Posted: Thu Aug 24, 2006 8:39 am
by sweatje
The Ninja Space Goat wrote:What do you all use to benchmark your code? Is there a pretty widely-used library for php benchmarking? Thanks!
ab
Posted: Thu Aug 24, 2006 9:55 am
by Oren
Just installed Xdebug, how could I miss it? It's damn cool
