Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Lodash.isEqual vs JSON.stringify Equality Comparison for deep chart.
Test on isEqual performance
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36
Browser:
Chrome 145
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one month ago
Test name
Executions per second
_.isEqual
139339.0 Ops/sec
JSON.stringify
528377.4 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.4/lodash.min.js"></script>
Script Preparation code:
window.foo = { "version": "25.0.0", "type": "chart", "id": "Chart 1595529095041", "title": { "type": "chartText", "content": { "type": "esriTS", "color": [ 40, 144, 206, 255 ], "text": "Mean of Ward", "font": { "size": 20, "weight": "bold" } } }, "axes": [ { "type": "chartAxis", "visible": true, "labels": { "type": "chartText", "visible": true, "content": { "type": "esriTS", "color": [ 40, 144, 206, 255 ], "font": { "size": 14, "weight": "bold" } } }, "valueFormat": { "type": "category", "characterLimit": 11 }, "lineSymbol": { "type": "esriSLS", "color": [ 199, 234, 255, 255 ], "width": 1 }, "title": { "type": "chartText", "content": { "type": "esriTS" } } }, { "type": "chartAxis", "visible": true, "labels": { "type": "chartText", "visible": true, "content": { "type": "esriTS", "color": [ 40, 144, 206, 255 ], "font": { "size": 14, "weight": "bold" } } }, "valueFormat": { "type": "number", "intlOptions": { "style": "decimal", "minimumFractionDigits": 0, "maximumFractionDigits": 3 } }, "lineSymbol": { "type": "esriSLS", "color": [ 199, 234, 255, 255 ], "width": 1 }, "grid": { "type": "esriSLS", "color": [ 199, 234, 255, 255 ], "width": 1 }, "title": { "type": "chartText", "content": { "type": "esriTS" } }, "minimum": null, "maximum": null, "integerOnlyValues": false } ], "series": [ { "type": "barSeries", "id": "Ward", "name": "Ward", "query": { "groupByFieldsForStatistics": [ "Primary_Ty" ], "outStatistics": [ { "statisticType": "avg", "onStatisticField": "Ward", "outStatisticFieldName": "AVG_WARD_0" } ] }, "x": "Primary_Ty", "y": "AVG_WARD_0", "fillSymbol": { "type": "esriSFS", "color": [ 166, 206, 227, 178.5 ] }, "dataLabels": { "type": "chartText", "visible": true, "content": { "type": "esriTS", "color": [ 0, 0, 0, 178.5 ], "text": "", "font": { "family": "Arial, Helvetica, sans-serif", "size": 10 } } }, "binTemporalData": false } ], "rotated": false, "colorMatch": false, "orderOptions": { "data": { "orderType": "arcgis-charts-category", "orderBy": "ASC" } }, "stackedType": "sideBySide" }; window.bar = { "version": "25.0.0", "type": "chart", "id": "Chart 1595529095041", "title": { "type": "chartText", "content": { "type": "esriTS", "color": [ 40, 144, 206, 255 ], "text": "Mean of Ward", "font": { "size": 20, "weight": "bold" } } }, "axes": [ { "type": "chartAxis", "visible": true, "labels": { "type": "chartText", "visible": true, "content": { "type": "esriTS", "color": [ 40, 144, 206, 255 ], "font": { "size": 14, "weight": "bold" } } }, "valueFormat": { "type": "category", "characterLimit": 11 }, "lineSymbol": { "type": "esriSLS", "color": [ 199, 234, 255, 255 ], "width": 1 }, "title": { "type": "chartText", "content": { "type": "esriTS" } } }, { "type": "chartAxis", "visible": true, "labels": { "type": "chartText", "visible": true, "content": { "type": "esriTS", "color": [ 40, 144, 206, 255 ], "font": { "size": 14, "weight": "bold" } } }, "valueFormat": { "type": "number", "intlOptions": { "style": "decimal", "minimumFractionDigits": 0, "maximumFractionDigits": 3 } }, "lineSymbol": { "type": "esriSLS", "color": [ 199, 234, 255, 255 ], "width": 1 }, "grid": { "type": "esriSLS", "color": [ 199, 234, 255, 255 ], "width": 1 }, "title": { "type": "chartText", "content": { "type": "esriTS" } }, "minimum": null, "maximum": null, "integerOnlyValues": false } ], "series": [ { "type": "barSeries", "id": "Ward", "name": "Ward", "query": { "groupByFieldsForStatistics": [ "Primary_Ty" ], "outStatistics": [ { "statisticType": "avg", "onStatisticField": "Ward", "outStatisticFieldName": "AVG_WARD_0" } ] }, "x": "Primary_Ty", "y": "AVG_WARD_0", "fillSymbol": { "type": "esriSFS", "color": [ 166, 206, 227, 178.5 ] }, "dataLabels": { "type": "chartText", "visible": true, "content": { "type": "esriTS", "color": [ 0, 0, 0, 178.5 ], "text": "", "font": { "family": "Arial, Helvetica, sans-serif", "size": 10 } } }, "binTemporalData": false } ], "rotated": false, "colorMatch": false, "orderOptions": { "data": { "orderType": "arcgis-charts-category", "orderBy": "ASC" } }, "stackedType": "sideBySide" };
Tests:
_.isEqual
_.isEqual(window.foo, window.bar)
JSON.stringify
JSON.stringify(window.foo) === JSON.stringify(window.bar);