bool

Benchmark created on


Setup

const data = [...Array(1000).keys()].map(v => Math.random() > 0.5 ? 1 : 0)

Test runner

Ready to run.

Testing in
TestOps/sec
bool
data.map(v => Boolean(v))
ready
!!
data.map(v => !!v)
ready

Revisions

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