JSON test

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Array comp
const arr1 = Array(10000).fill('hidy');
const arr2 = Array(10000).fill('hidy');
const result = arr1 === arr2;
// false
ready
JSON comp
const arr1 = Array(10000).fill('hidy');
const arr2 = Array(10000).fill('hidy');
const result = JSON.stringify(arr1) === JSON.stringify(arr2)
// true
ready

Revisions

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