Script Preparation code:
AخA
 
window.foo = [[123,345], [234,456]],[[123,345], [234,456]];
window.bar = [[123,345], [234,456]],[[123,345], [234,456]];
Tests:
  • JSON.stringify

     
    JSON.stringify(window.foo) === JSON.stringify(window.bar);
  • Array.every

     
    window.foo.every((item, index) => item === window.bar[index])
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    JSON.stringify
    Array.every

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
JSON.stringify 2338459.5 Ops/sec
Array.every 6637934.5 Ops/sec