Testing multithreaded performance