added memory benchmark with local memory added.