memory leak benchmark