var endTime = Date.now(); printOutput("100 iterations of setZeroTimeout took " + (endTime - startTime) + " milliseconds."); i = 0; startTime = Date.now(); setTimeout(test2, 0);