Fixed the memory and rotate benchmarks