An open API service indexing awesome lists of open source software.

https://github.com/ivanbgd/branch_prediction

Compares execution speed of processing sorted and unsorted arrays, with and without branching. Disassembly and results included.
https://github.com/ivanbgd/branch_prediction

branch-prediction c-plus-plus cplusplus cpp

Last synced: 12 months ago
JSON representation

Compares execution speed of processing sorted and unsorted arrays, with and without branching. Disassembly and results included.

Awesome Lists containing this project

README

          

# Branch_Prediction
Compares execution speed of processing sorted and unsorted arrays, with and without branching. Loop interchange has also been tested.

Disassembly from MSVS 2015 is included in the source file, and results are in screenshots.

Motivation:

Why is it faster to process a sorted array than an unsorted array?
http://stackoverflow.com/questions/11227809/why-is-it-faster-to-process-a-sorted-array-than-an-unsorted-array