UPDATED: benchmark script now quits matlab automatically on linux.