Fix perf test script issues.