Td Securities interview question

How can you find out if the Java program is working efficiently?