TIL about getting how long it takes for JS to execute
POSTED ON:
TAGS: performance javascript
You know how Google is able to show off this?
const firstTime = performance.now();
something();
const secondTime = performance.now();
console.log(`The something function took ${secondTime - firstTime} milliseconds.`);
via 8 JavaScript Tips & Tricks That No One Teaches
Related TILs
Tagged: performance