in reply to Shifting an Array

In general, to compare the speed of two chunks of code, you could use Benchmark. See this thread.