Td Securities Interview Question

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