added output of peak memory usage