Set Thread.sleep to 1 ms to get maximum single-thread performance