Use console.time / console.timeEnd for faster measuring.