Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
es-toolkit isEqual vs JSON stringify vs lodash isEqual
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
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:
Chrome 145
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 months ago
Test name
Executions per second
es-toolkit
1875327.6 Ops/sec
JSON.stringify
4486500.5 Ops/sec
lodash
1434693.6 Ops/sec
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);