How can I say which class of many (which all do the same job) execute faster? is there a software to measure that?
If it's something that can be tested outside the Web context, I just use the Unix time
command.
For quick stuff I do this (in PHP):
$startTime = microtime(true);
doTask(); // whatever you want to time
echo "Time: " . number_format(( microtime(true) - $startTime), 4) . " Seconds\n";
You can also use a profiler like http://xdebug.org/.
You can use basic stuff like storing timestamps or microtime() before and after an operation to calculate the time needed. That's easy to do, but not very accurate. Maybe a better solution is Xdebug, i've never worked with it but it seems to be the best-known PHP debugger/profiler I can find.
Zend Studio has built in support for profiling using XDebug or ZendDebugger. It will profile your code, telling you exactly how long every function took. It's a fantastic tool for figuring out where your bottlenecks are.
ive been using xhprof lately http://pecl.php.net/package/xhprof. It was originally developed by facebook and it comes with a decent we interface.