Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
es-toolkit isEqual vs JSON stringify vs lodash isEqual
(version: 1)
Comparing performance of:
es-toolkit vs JSON.stringify vs lodash
Created:
one year ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/es-toolkit@%5E1"></script> <script> window.et = window._; </script> <script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js"></script>
Script Preparation code:
const node1 = { id: "n-w71cvCJS6w7WM8E3C3_6w", order: "a06DJ", type: "shape", attributes: { width: 100, height: 100, color: '#fff', } }; const node2 = { id: "n-w71cvCJS6w7WM8E3C3_6w", order: "a06DJ", type: "shape", attributes: { width: 100, height: 100, color: '#fff', } };
Tests:
es-toolkit
et.isEqual(node1, node2);
JSON.stringify
JSON.stringify(node1) === JSON.stringify(node2);
lodash
_.isEqual(node1, node2);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
es-toolkit
JSON.stringify
lodash
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Browser/OS:
Chrome 145 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
es-toolkit
1875327.6 Ops/sec
JSON.stringify
4486500.5 Ops/sec
lodash
1434693.6 Ops/sec
Related benchmarks:
_.isEqual vs JSON.stringify
Lodash.isEqual vs JSON.stringify Equality Deep Comparison for Shallow Array of Strings.
Lodash.isEqual vs JSON.stringify big object
Lodash.isEqual vs JSON.stringify fort object
deep-diff vs json-fast-patch
json-diff-patch vs fast-json-patch
JSON.stringify vs structuredClone list
JSON.stringify vs structuredClone fork
es-toolkit isEqual vs JSON stringify
Comments
Confirm delete:
Do you really want to delete benchmark?