Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 11. Filters  > Filter #2: Benchmark Information

Filter #2: Benchmark Information

One common need for web developers is to profile their PHP applications to make sure that everything is properly set up performance-wise. The usual way to go about this is to record the time in various portions of code, and then calculate how long each section is taking, and then take measures to improve the performance.

However, when doing this benchmarking work manually by timing each section of the PHP code, the template parsing and compilation steps will not be taken into account. One of the workarounds is to create a postfilter plug-in that simply records the time when Smarty finishes the compilation of


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial