deep checking

Benchmark created on


Setup

const searchArr = Array.from(Array(5000)).map((_, idx) => ({idx, a: idx, b: idx, c: idx, d: idx}))

Test runner

Ready to run.

Testing in
TestOps/sec
map-includes
searchArr.map(x => x.idx).includes(4999)
ready
some
searchArr.some(x => x.idx == 4999)
ready
map-includes-missing
searchArr.map(x => x.idx).includes(-1)
ready
some-missing
searchArr.some(x => x.idx == -1)
ready

Revisions

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