performance.measure is a useful API in JavaScript. That’s for measuring duration time between any two points of code. And it can be used on Browser and Node.js. You don’t have to build a custom tracker with Date. That’s simple, standard, doesn’t pollute the scope, and you can get a…