added memory usage tracking to benchmark script