Rayed's Real Life

FreeBSD, Linux, Apache, PHP, MySQL, and very little of my life ;)

PHP Benchmark

one comment

To optimize your php code you need to know how does each section of you application perform, this library will give you away to measure your code performance.


include 'benchmark.php';

benchmark_start('all');

benchmark_start('parse');
// Do parsing
echo benchmark_end('parse');

benchmark_start('data_fetch');
// Do parsing
echo benchmark_end('data_fetch');

echo benchmark_end('all');

Download

Written by Rayed

August 8th, 2005 at 9:44 am

Posted in

One Response to 'PHP Benchmark'

Subscribe to comments with RSS or TrackBack to 'PHP Benchmark'.

  1. [...] The text is done by fetching the result of a complex query 1000 times, and calculated the time it took using my bechmark library, times in seconds: [...]

Leave a Reply

Powered by WP Hashcash