Benchmarking your application

Benchmarking can be useful for you as it can let you know how your application is coping with the task of computing all your code. It can let you know where in your application something is slow, either because of memory constraints or perhaps because of a particularly computational intensive block of code. Using this information, you can identify whether there are any bottlenecks and if you are able to clear them, perhaps by reprogramming or allocating extra resources. Here's how it's done.

Getting ready

Many web applications will be linked to some sort of database and as an example of benchmarking database connectivity, we're going to query a database. To do that, we will obviously need a database to connect to. Copy ...

Get CodeIgniter 2 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.