Skip to content

ch6: Benchmarking | Use console.time() #1389

Open
@stefankp

Description

@stefankp

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions