fix crash of PerformanceTest
Merge pull request #5202 from minggo/bug-fix

fix crash of PerformanceTest