HTML Preparation code:
AخA
 
1
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
Script Preparation code:
 
// 1 level deep
window.foo1 = [
  {id: "1035257027", person_id: "1043549930", group_id: "551225445", avatar_url: "http://people.pco.test/static/no_photo_thumbnail_gray.png", email_address: "pico@pco.bz"},
  {id: "1035257027", person_id: "1043549930", group_id: "551225445", avatar_url: "http://people.pco.test/static/no_photo_thumbnail_gray.png", email_address: "pico@pco.bz"},
];
window.bar1 = [
  {id: "1035257027", person_id: "1043549930", group_id: "551225445", avatar_url: "http://people.pco.test/static/no_photo_thumbnail_gray.png", email_address: "pico@pco.bz"},
  {id: "1035257025", person_id: "1043549930", group_id: "551225445", avatar_url: "http://people.pco.test/static/no_photo_thumbnail_gray.png", email_address: "pico@pco.bz"},
];
Tests:
  • _.isEqual different objects

     
    _.isEqual(window.foo1, window.bar1)
  • === different objects

     
    window.foo1 === window.bar1;
  • === same object

     
    window.foo1 === window.foo1;
  • _.isEqual same object

     
    _.isEqual(window.foo1, window.foo1)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    _.isEqual different objects
    === different objects
    === same object
    _.isEqual same object

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
_.isEqual different objects 1051150.2 Ops/sec
=== different objects 6566962.5 Ops/sec
=== same object 6939338.5 Ops/sec
_.isEqual same object 4805015.5 Ops/sec