On SO, there are quite a few questions about performance profiling, but I don\'t seem to find the whole picture. There are quite a few issues involved and most Q & A ignore
To answer you main question, it "reverse" algorithm just swaps elements from the array and not operating on the elements of the array.