Performance tuning and code optimization are vital for any application.
The hardest thing to do is to identify the parts of application that are sluggish. Once identified - they need to be optimized with care (be careful not to break present business logic in the process of optimization...... This is were test cases comes for rescue)
One of the simplest but powerful tool that I came across is ( REFERENCE )
Installation : None......... There is no installation, you just have to copy the RAWK.rb file ( SOURCE) and pass the log file you want to process.
Usage : ruby rawk.rb < production.log
This will list out the entire report, detailing the request action, MIN & MAX rendering times etc.
Most importantly RAWK is very fast.