Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Windows
Desktop
one year ago
Test name Executions per second
_.isEqual 2018877.9 Ops/sec
_.difference 1150677.8 Ops/sec
HTML Preparation code:
AخA
 
1
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js"></script>
Script Preparation code:
x
 
window.foo1 = [1,2,3,4,5,6,7,8,9,10,11,12];
window.bar1 = [33,10,11,12,1,2,3,4,5,6,7,8,9,44];
Tests:
  • _.isEqual

     
    _.isEqual(window.foo1, window.bar1)
  • _.difference

     
    _.difference(window.foo1, window.bar1)