Open
Description
https://github.com/getify/You-Dont-Know-JS/blob/master/async%20%26%20performance/ch6.md#benchmarking
You could use the built-in console.time()
and console.timeEnd()
in this benchmarking example, as the console
offers many more options than just log()
. https://developer.mozilla.org/en-US/docs/Web/API/Console/time
console.time()
// do some operation
console.timeEnd()
// default: 4886.283ms