Added profiling to performance test.