I have a question about how to benchmark code.
The Background Info:
I have recently created a weblog analyser for my high school. As a feature for it, I have created a "hierarchy view" so the webmaster can easily browse his way through the site, finding the amount of hits a certain directory/file/etc has gotten. You can see it here. Click on a side caret (or as some like to call it, a "greater than symbol") link at the end of a line to expand a directory, or click the plus sign to add to a watched link (don't do that, or if you do delete it. Its only for the webmaster).
The Question:
Sometimes, this "hierarchy view" runs kinda slow. It seems to run slower for larger directories; however, that doesn't make any sense since the script still has to sort through the same amount of data for a smaller directory. I would like to know where my script is hanging up so I can possibly fix it, or find out if it is just the browser taking awhile to show the information. Is there any way to do this?
In reply to Question about benchmarking by jryan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |