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