A simple program that shows the strength of the modern branch predictor, and why you should make your data branch is more predicatable ways.
Note this was a rip from the SO question: http://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-an-unsorted-array?rq=1