O'Reilly logo

CodeIgniter 2 Cookbook by Rob Foster

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required