News Feed
Sections




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

Paul Jones' Blog:
Easy Benchmarking with Solar
July 13, 2006 @ 05:40:37

Paul Jones has information in this new post on his blog with a how-to on doing some benchmarking inside of the Solar application framework.

Comparative benchmarking is tedious work. It's not hard to do, it's just no fun to set up the same scaffold every time you want to figure out how long it takes different pieces of code to execute.

To do a benchmark, essentially you need only four things: a timing mechanism, a loop to run the first case, a loop to run the second case, and a way to show the time taken by each loop.

To illustrate, he gives example code of a simple loop and the output of its timing results. But, since this is a boring example, he demonstrates something a bit more complex - something using Solar_Test_Bench and Solar_Test. The example of using these two components pits require_once and Solar's own loadClass against each other. He also includes another similar test, one comparing fopen and exploding the include path to check for a file's existence.

0 comments voice your opinion now!
benchmarking solar framework solar_test solar_test_bench benchmarking solar framework solar_test solar_test_bench


blog comments powered by Disqus

Similar Posts

Paul Jones' Blog: Aura for PHP 5.3+, aka Solar 2.0

IBM developerWorks: Understanding the Zend Framework,Part 4: When there is no feed, Zend_HTTP_Client

Developer Tutorials Blog: Benchmarking PHP frameworks

ThisLab: Notes on Choosing a PHP Framework: A Quick Comparison of CodeIgniter and Kohana

Fawad Hassan's Blog: Load More Using KnockoutJS, PHP/CodeIgniter (Part 1)


Community Events





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


series symfony package install laravel release tips interview zendserver library community podcast api opinion deployment update framework language list introduction

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