Logging performance impact

Benchmark created on


Setup

const a = [...new Array(100000)].map((_, i) => i)

Test runner

Ready to run.

Testing in
TestOps/sec
console.log
a.map(i => console.log(i))
ready
nothing
a.map(i => {})
ready
console.debug
a.map(i => console.debug(i))
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.