Performance testing program for java