terryds 0 Newbie Poster

Can you tell me what's the right way to benchmark script ?

I've profilled it by using Xdebug, but the result always changes

And, when i use memory_get_usage, it gives me a definite result..
But, is it right for me to say that the less memory it use, the faster the script will be ?
And, I want to ask which one is better, memory_get_usage() or memory_get_peak_usage() ?