On 25.10.2015 20:37, Iakh wrote: > Full exaple with comparation of algorithms (SIMD, naive, binary search): > http://dpaste.dzfl.pl/f3b8989841e3 From there: > void runBinary() > { > static int i = 0; > naiveIndexOf(cast(ubyte)(i++/ArraySize + 1), arr); > } runBinary calls naiveIndexOf. You're not testing binaryIndexOf.