Simple Blog – Performance Benchmark

Simple Blog is a multi-part series. Check out The Index

In previous posts we designed a simple blog application using a variety of programming styles, patterns, and external libraries. Using’s Apache’s benchmark tool I’ve ran some tests to benchmark each different approach. Each benchmark hammers the respective application with 1000 pages requests across 10 concurrent sessions. The page we’ll call 1000 times is the List page which retrieves and displays all blog posts.

Here’s a list of the commands we’ll be running:

ab -c 10 -n 1000 http://baseurl/1-structured/index.php
ab -c 10 -n 1000 http://baseurl/2-procedural/index.php
ab -c 10 -n 1000 http://baseurl/3-objects/index.php
ab -c 10 -n 1000 http://baseurl/4-mvc/index.php
ab -c 10 -n 1000 http://baseurl/5-mysqli/index.php
ab -c 10 -n 1000 http://baseurl/6-pdo/index.php
ab -c 10 -n 1000 http://baseurl/7-smarty/index.php
ab -c 10 -n 1000 http://baseurl/8-codeigniter/index.php

Here’s what the output looks like for the first test:

Continue reading