Archive for the ‘Code’ Category

Ryan

PHP Benchmark/Timer Class

August 20, 2009 by Ryan in Code, PHP


Overview This is a PHP class that calculates the time between specified points. It can be used to determine how long your page took to generate or how long certain loops take to run. This class is very flexible because it allows you to specify any number of “marker” points in the code and then [...]

Ryan

Benchmarking our PHP

June 29, 2009 by Ryan in Code, PHP


Benchmarking code is one of those often talked about things that most new to intermediate programmers have probably heard about, but don’t know how to actually do it. Even a quick Google search on it will give you all sorts of mis-information and very labor intensive ways to find where your code is slowing down. [...]

When diving into PHP frameworks one of the handiest set of functions/methods you will find are the “Helpers“. The reason I like them so much is because they can really shorten the time it takes to write your code. A quick call to a helper can output lines and lines of HTML without actually writing [...]