You can run timers on the console
object, like this:
console.time('a');
costlyOperation();
console.timeEnd('a'); // outputs how much time has passed since the call above
costlyOperation();
console.timeEnd('a'); // outputs how much time has passed since the call above