updated PerformanceTest
improved test code