News Feed
Sections




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

Jonathan Street's Blog:
Lightning Fast Sites & Better Benchmarks
September 25, 2007 @ 12:56:00

Jonathan Street has a few tips for developers out there looking to speed things up on their site - seven tips towards "lightning fast sites".

I was recently creating a small tool in PHP and found myself hitting the max execution time and getting a fatal error. As it was only for my personal use I just bumped up the max execution time but it made me stop and think about how I could improve the speed of those scripts I do put up for public use. Most people aren't going to wait for 60 seconds for a page to load. Naturally I hit the internet looking for tips.

The tips he came across (each including the simple benchmarks to show the differences) were:

  • sizeof vs count
  • is_int vs is_integer
  • chop vs rtrim
  • doubleval vs floatval
  • fwrite vs fputs
  • implode vs join
  • ini_alter vs ini_set

Be sure to also check out his follow up post talking about building better benchmarks to test the sorts of tips he's given above.

0 comments voice your opinion now!
lightning fast tip benchmark lightning fast tip benchmark


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: 6 PHP Performance Tips for Producing Highly Optimized Code

Chris Shiflett's Blog: Six Reasons PHP Sucks

Fred Wu's Blog: Ruby on Rails, Passenger (ModRails) vs CodeIgniter and Kohana (Benchmarks)

Brandon Savage's Blog: Five Tips To Make Good Object-Oriented Code Better

Sebastian Bergmann's Blog: Benchmark of PHP Branches 3.0 through 5.3-CVS


Community Events

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


opinion series introduction interview security symfony release library api podcast extension community laravel5 voicesoftheelephpant framework version threedevsandamaybe unittest language laravel

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