Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Lodash.isEqual vs JSON.stringify Equality Comparison for Shallow Array of Strings_1.
(version: 0)
Test on isEqual performance
Comparing performance of:
_.isEqual vs JSON.stringify
Created:
6 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
Script Preparation code:
window.foo = ['cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow']; window.bar = ['cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow','cat', 'dog', 'bird', 'cow'];
Tests:
_.isEqual
_.isEqual(window.foo, window.bar)
JSON.stringify
JSON.stringify(window.foo) === JSON.stringify(window.bar);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
_.isEqual
JSON.stringify
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
Lodash.isEqual vs JSON.stringify Equality Comparison for Shallow Array of Strings CM-forked fixed
Lodash.isEqual vs JSON.stringify Equality Comparison for Shallow Array of Strings. temp test
Lodash.isEqual vs JSON.stringify Equality Comparison for Shallow Array of Strings. temp test fork
Lodash.isEqual vs JSON.stringify Equality Comparison for deep objects.
Comments
Confirm delete:
Do you really want to delete benchmark?