I think with public static final long ITERATIONS = 4_000_000L; Output: ... Just a little thing. Just a little thing. Just a little thing. 0 Time taken: 40248.223954ms # With println 0 Time taken: 6.285212ms # Without println