PHP
  Home arrow PHP arrow Using Timers to Benchmark PHP Applicat...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Rational Software Development Conference
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Using Timers to Benchmark PHP Applications
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 2
    2008-04-30

    Table of Contents:
  • Using Timers to Benchmark PHP Applications
  • Defining a few working classes
  • Displaying database rows without using HTTP compression
  • Displaying database records using HTTP compression

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    PCmover - $15 Off with Coupon Code CJPH7Q

    Using Timers to Benchmark PHP Applications
    (Page 1 of 4 )

    If you’ve been using PHP for a while, then it’s possible that you want to learn how to create benchmarking scripts. If this is true, then this series of tutorials will be pretty helpful. Welcome to the second article of the series “Benchmarking applications with PHP.” Composed of three parts, this series walks you through the development of several approaches aimed at benchmarking specific blocks of code and even entire PHP applications.

    As you’ll surely recall from the last tutorial, I discussed distinct approaches for benchmarking concrete portions of code and even complete programs. These methods, which were originally created either as procedural solutions or object-based techniques, used the “microtime()” PHP built-in function to create simple timing functions along with a pair of useful timer classes.

    Even though all the methods that I mentioned before are really simple to understand and follow rather basic logic, they’re also useful for creating more sophisticated timing solutions that eventually might fit the requirements of high-performance applications. I’m only going to provide you with some handy pointers on developing these kinds of timing mechanisms; what you do with them is obviously up to you.

    Well, having refreshed the topics discussed in the first tutorial of the series, it’s time to go over the subject of this one. This way you will know what to expect from it before you start reading.

    Since you already know how to create timer functions and classes, in this tutorial, I’ll create some concrete examples that show where these timing mechanisms can be applied in order to evaluate the performance of certain PHP applications.

    Are you ready to learn more about how to benchmark applications with PHP? Let’s get started!

    More PHP Articles
    More By Alejandro Gervasio


       · This second part of the series shows how to build a simple timer class with PHP that...
     

       

    PHP ARTICLES

    - Setting Up a Web-based Image Hosting Service
    - Comparing Files and Databases with PHP Bench...
    - Setting Up a Web-Based Image Gallery
    - Using Timers to Benchmark PHP Applications
    - Benchmarking Applications with PHP
    - Setting Up a Web-Based File Manager: PHPfile...
    - Developing a Modular Class For a PHP File Up...
    - Setting Up a Web-Based File Manager: bfExplo...
    - Defining a Custom Function for File Uploader...
    - Parsing Child Nodes with the DOM XML extensi...
    - Creating an Error Handling Module for a PHP ...
    - Accessing Attributes and Cloning Nodes with ...
    - Retrieving Information on Selected Files wit...
    - Handling HTML Strings and Files with the DOM...
    - Building File Uploaders with PHP 5

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway