News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



DevShed:
Comparing Files and Databases with PHP Benchmarking Applications
0 comments :: posted Thursday May 08, 2008 @ 07:58:38
voice your opinion now!

DevShed is wrapping up their series looking at benchmarking your PHP applications with the third part - a look at comparing execution times of scripts that can either pull from a database or from a flat file.

This large, complex subject offers numerous possibilities for experimentation, which means that you'll surely have tons of fun creating timing systems with PHP. [...] his article, then, will be focused on evaluating different scripts that fetch sets of records, first from a database, and then from flat files.

They use the Timer class they defined in a previous part of the series and wrap it around both a database class (pulling user information from a MySQL database) and a fetch to a flat file for similar information. General exceptions are handled as a part of the resource connection class.

tagged with: database file compare timer class tutorial exception benchmark



code zendframework ajax PHP5 developer pecl conference database PEAR package application release job book releases mysql zend cakephp security framework

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework