Benchmarking PHP

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Benchmarking PHP

Post by Luke »

What do you all use to benchmark your code? Is there a pretty widely-used library for php benchmarking? Thanks!
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

When you say benchmarking code, agianst what are you benchmarking?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 ;)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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 :D
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Everah wrote:PS When did you go and get all mature and stuff anyway :D
Who told I got mature? They are lying! :x :evil:
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Xdebug Image
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

It would seem feyd and Ninja are slowly swapping personalities. :o
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

Jenk wrote:It would seem feyd and Ninja are slowly swapping personalities. :o
lmao
User avatar
sweatje
Forum Contributor
Posts: 277
Joined: Wed Jun 29, 2005 10:04 pm
Location: Iowa, USA

Re: Benchmarking PHP

Post 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
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Just installed Xdebug, how could I miss it? It's damn cool 8)
Post Reply