Add memory benchmarking