News Feed
Sections




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

Stoimen Popov's Blog:
PHP Performance Bitwise Division
January 06, 2012 @ 09:26:38

Stoimen Popov has a new post to his blog today comparing the performance of bitwise division versus the normal "/" division operator.

Recently I wrote about binary search and then I said that in some languages, like PHP, bitwise division by two is not faster than the typical "/" operator. However I decided to make some experiments and here are the results.

According to his results using the bitwise method is slightly faster, but you'd only really notice it when working with large sets of data (like his example using 10,000,000). The code to run his benchmarks is included in the post.

0 comments voice your opinion now!
bitwise division benchmark compare operator


blog comments powered by Disqus

Similar Posts

WebDevLogs.com: Which way to get the PHP self script name is the fastest?

WebDevLogs.com: Which way to get the PHP self script name is the fastest?

PHPBuilder.com: The Ternary Conditional Operator

Francois Zeninotto's Blog: Comparing Propel, Doctrine and sfPropelFinder

LeaseWebLabs.com: How to use the “yield” keyword in PHP 5.5 and up


Community Events





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


community unittest language symfony introduction release list voicesoftheelephpant version interview conference api install extension laravel opinion configure podcast series composer

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