New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ch6: Benchmarking | Use console.time() #1389
Comments
In this example, the suggestion is to use the built-in Here's a brief summary of the suggestion you've mentioned: Instead of using Example usage: console.time();
// Perform the operation you want to measure.
console.timeEnd(); By utilizing If you have any further questions or if there's anything else you'd like to discuss, feel free to let me know! |
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()
andconsole.timeEnd()
in this benchmarking example, as theconsole
offers many more options than justlog()
. https://developer.mozilla.org/en-US/docs/Web/API/Console/timeThe text was updated successfully, but these errors were encountered: