Measure the time in JavaScript const startTime = performance.now() doSomething() // <---- measured code goes between startTime and endTime const endTime = performance.now() console.log(`Something took ${endTime - startTime} ms`)