Test name | Executions per second |
---|---|
_.isEqual | 2190254.5 Ops/sec |
_.difference | 1234402.6 Ops/sec |
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.15/lodash.min.js"></script>
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];
_.isEqual(window.foo1, window.bar1)
_.difference(window.foo1, window.bar1)