Tag Archives: Optimization

Optimize your JavaScript code with Performance.now ()

By | September 14, 2015

When you want to test the time taken by a function to run in JavaScript, you have the perfect tool for this: Performance.now (). Unlike Date.now() function calculated in relation to the system time, Performance.now() is incremented in a constant manner. Let’s take an example : These two functions perform the same treatment, incrementing a… Read More »