News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Comparing Files and Databases with PHP Benchmarking Applications
May 08, 2008 @ 07:58:38

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.

1 comment voice your opinion now!
database file compare timer class tutorial exception benchmark


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Fetching multiple random rows from a database

Nick Halstead's Blog: 10 Reasons why PHP is still very much alive

Tony Lukasavage's Blog: PHP Debugging on IntelliJ IDEA 10 with Xdebug

ThinkPHP Blog: Make the download of large files with PHP (and lighty) very easy

Zend Developer Zone: Implementing the Observer Pattern with SplObserver and SplSubject


Community Events





Don't see your event here?
Let us know!


conference zendserver symfony list development framework introduction developer threedevsandamaybe tips deployment series interview podcast release laravel language api code community

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