Test name | Executions per second |
---|---|
isEqual | 841503.9 Ops/sec |
stringify | 680160.9 Ops/sec |
window.foo = {'cat': 'cat', 'dog': 'dog', 'bird': 'bird'};
window.foo = {'cat': 'cat', 'dog': 'dog', 'bird': 'bird'};
_.isEqual(window.foo, window.bar)
JSON.stringify(window.foo) === JSON.stringify(window.bar);