Add performance test for random reads; extract a stopwatch module