testing array equals

Benchmark created on


Setup

const array1 = Array(100).fill().map((_, index) => index)
const array2 = Array(100).fill().map((_, index) => index)

Test runner

Ready to run.

Testing in
TestOps/sec
JSON.stringify
JSON.stringify(array1) === JSON.stringify(array2)
ready
array.every()
array1.every((value, index) => value === array2[index])
ready
array.toString()
array1.toString() === array2.toString()
ready

Revisions

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