Home arrow PHP arrow Comparing Files and Databases with PHP Benchmarking Applications

Comparing Files and Databases with PHP Benchmarking Applications

If you’re a web developer who wants to learn how to create simple benchmarking scripts with PHP, this set of comprehensive articles will offer you a friendly introduction to the subject. Welcome to the final part of the series “Benchmarking Applications with PHP.” Made up of three tutorials, this series teaches you, via copious hands-on examples, how to implement some simple approaches to determine the performance of different PHP applications.

TABLE OF CONTENTS:
  1. Comparing Files and Databases with PHP Benchmarking Applications
  2. Reading data from a sample database table
  3. Reading data from a flat text file
  4. Reading and writing compressed file data
By: Alejandro Gervasio
Rating: starstarstarstarstar / 3
May 07, 2008

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

As you probably realized from the second tutorial of the series, creating timing scripts either by using a procedural methodology or an object-based approach is a hassle-free process. It can be easily achieved by anyone with an intermediate background in PHP.

More specifically, all the practical examples that you saw in the previous parts used the neat "microtime()" built-in PHP function as the real workhorse. It's handy for constructing timer functions or eventual classes. In either case, you can expand the functionality of all these examples and build a full-featured timing system that, obviously, can be implemented for benchmarking purposes too.

This large, complex subject offers numerous possibilities for experimentation, which means that you'll surely have tons of fun creating timing systems with PHP.

Now it's time to pay attention to the topics that will be discussed in this final part of the series. In the preceding tutorial I showed you a few understandable examples of how to use a timer class to spot the differences between fetching rows from a MySQL database table using HTTP compression and without it. This article, then, will be focused on evaluating different scripts that fetch sets of records, first from a database, and then from flat files.

The experience sounds really interesting. Thus, let's not waste more time in preliminaries and start reading!



 
 
>>> More PHP Articles          >>> More By Alejandro Gervasio
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PHP ARTICLES

- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: