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.
(version: 0)
Comparing performance of:
_.isEqual vs JSON.stringify
Created:
3 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 = [{ "form": { "getFieldsValue": "ƒ () {}", "getFieldValue": "ƒ () {}", "getFieldInstance": "ƒ bound getFieldInstance() {}", "setFieldsValue": "ƒ bound setFieldsValue() {}", "setFields": "ƒ bound setFields() {}", "setFieldsInitialValue": "ƒ () {}", "getFieldDecorator": "ƒ bound getFieldDecorator() {}", "getFieldProps": "ƒ bound getFieldProps() {}", "getFieldsError": "ƒ () {}", "getFieldError": "ƒ () {}", "isFieldValidating": "ƒ () {}", "isFieldsValidating": "ƒ () {}", "isFieldsTouched": "ƒ () {}", "isFieldTouched": "ƒ () {}", "isSubmitting": "ƒ bound isSubmitting() {}", "submit": "ƒ bound submit() {}", "validateFields": "ƒ bound validateFields() {}", "resetFields": "ƒ bound resetFields() {}", "validateFieldsAndScroll": "ƒ bound validateFieldsAndScroll() {}" }, "cablelineProps": { "isFetching": false, "result": "{}", "error": "{}", "lastUpdated": "", "isError": false, "cableLines": "[{…}]", "fieldTabWhiteCallInfo": "[\"cable_line_applyWhiteCall_whiteCallMobiles_mobile…]", "dataTabWhiteCallInfo": "{cable_line_applyWhiteCall_applyWhiteCallAddress1: …}", "contractSelected": "{applyCableLine: {…}, applyWhiteCall: {…}, cableLin…}", "readOnly": true, "activeRowCableline": 2, "isRemoveAttrDoc": false, "fieldTabBaseInfo": "[\"cable_line_base_info_applicantFamilyNameKana\", \"c…]", "dataTabBaseInfo": "{cable_line_base_info_address1: \"愛知県名古屋市西区桝形町\", cab…}", "fieldTabPhoneInfo": "[\"cable_line_phone_info_numberPortability\", \"cable_…]", "dataTabPhoneInfo": "{cable_line_phone_info_currentInternet: \"current_in…}", "fieldTabIdentityInfo": "[\"cable_line_verify_publishMethodId\", \"cable_line_v…]", "dataTabIdentityInfo": "{cable_line_verify_publishMethodId: \"catv_reception…}", "fieldNameResetWhiteCall": "[\"cable_line_applyWhiteCall_whiteCallMobiles_mobile…]" }, "requestAddresses": "ƒ () {}", "findOneBuilding": "ƒ bound findOneBuilding() {}", "addresses": { "address": "[]", "pagenation": "{hasNext: true, hasPrevious: true, page: 1, perPage…}" }, "parentForm": { "getFieldsValue": "ƒ () {}", "getFieldValue": "ƒ () {}", "getFieldInstance": "ƒ bound getFieldInstance() {}", "setFieldsValue": "ƒ bound setFieldsValue() {}", "setFields": "ƒ bound setFields() {}", "setFieldsInitialValue": "ƒ () {}", "getFieldDecorator": "ƒ bound getFieldDecorator() {}", "getFieldProps": "ƒ bound getFieldProps() {}", "getFieldsError": "ƒ () {}", "getFieldError": "ƒ () {}", "isFieldValidating": "ƒ () {}", "isFieldsValidating": "ƒ () {}", "isFieldsTouched": "ƒ () {}", "isFieldTouched": "ƒ () {}", "isSubmitting": "ƒ bound isSubmitting() {}", "submit": "ƒ bound submit() {}", "validateFields": "ƒ bound validateFields() {}", "resetFields": "ƒ bound resetFields() {}", "validateFieldsAndScroll": "ƒ bound validateFieldsAndScroll() {}" }, "readOnlyMode": true, "saveCableLineFieldData": "ƒ () {}" }]; window.bar = [{ "form": { "getFieldsValue": "ƒ () {}", "getFieldValue": "ƒ () {}", "getFieldInstance": "ƒ bound getFieldInstance() {}", "setFieldsValue": "ƒ bound setFieldsValue() {}", "setFields": "ƒ bound setFields() {}", "setFieldsInitialValue": "ƒ () {}", "getFieldDecorator": "ƒ bound getFieldDecorator() {}", "getFieldProps": "ƒ bound getFieldProps() {}", "getFieldsError": "ƒ () {}", "getFieldError": "ƒ () {}", "isFieldValidating": "ƒ () {}", "isFieldsValidating": "ƒ () {}", "isFieldsTouched": "ƒ () {}", "isFieldTouched": "ƒ () {}", "isSubmitting": "ƒ bound isSubmitting() {}", "submit": "ƒ bound submit() {}", "validateFields": "ƒ bound validateFields() {}", "resetFields": "ƒ bound resetFields() {}", "validateFieldsAndScroll": "ƒ bound validateFieldsAndScroll() {}" }, "cablelineProps": { "isFetching": false, "result": "{}", "error": "{}", "lastUpdated": "", "isError": false, "cableLines": "[{…}]", "fieldTabWhiteCallInfo": "[\"cable_line_applyWhiteCall_whiteCallMobiles_mobile…]", "dataTabWhiteCallInfo": "{cable_line_applyWhiteCall_applyWhiteCallAddress1: …}", "contractSelected": "{applyCableLine: {…}, applyWhiteCall: {…}, cableLin…}", "readOnly": true, "activeRowCableline": 2, "isRemoveAttrDoc": false, "fieldTabBaseInfo": "[\"cable_line_base_info_applicantFamilyNameKana\", \"c…]", "dataTabBaseInfo": "{cable_line_base_info_address1: \"愛知県名古屋市西区桝形町\", cab…}", "fieldTabPhoneInfo": "[\"cable_line_phone_info_numberPortability\", \"cable_…]", "dataTabPhoneInfo": "{cable_line_phone_info_currentInternet: \"current_in…}", "fieldTabIdentityInfo": "[\"cable_line_verify_publishMethodId\", \"cable_line_v…]", "dataTabIdentityInfo": "{cable_line_verify_publishMethodId: \"catv_reception…}", "fieldNameResetWhiteCall": "[\"cable_line_applyWhiteCall_whiteCallMobiles_mobile…]" }, "requestAddresses": "ƒ () {}", "findOneBuilding": "ƒ bound findOneBuilding() {}", "addresses": { "address": "[]", "pagenation": "{hasNext: true, hasPrevious: true, page: 1, perPage…}" }, "parentForm": { "getFieldsValue": "ƒ () {}", "getFieldValue": "ƒ () {}", "getFieldInstance": "ƒ bound getFieldInstance() {}", "setFieldsValue": "ƒ bound setFieldsValue() {}", "setFields": "ƒ bound setFields() {}", "setFieldsInitialValue": "ƒ () {}", "getFieldDecorator": "ƒ bound getFieldDecorator() {}", "getFieldProps": "ƒ bound getFieldProps() {}", "getFieldsError": "ƒ () {}", "getFieldError": "ƒ () {}", "isFieldValidating": "ƒ () {}", "isFieldsValidating": "ƒ () {}", "isFieldsTouched": "ƒ () {}", "isFieldTouched": "ƒ () {}", "isSubmitting": "ƒ bound isSubmitting() {}", "submit": "ƒ bound submit() {}", "validateFields": "ƒ bound validateFields() {}", "resetFields": "ƒ bound resetFields() {}", "validateFieldsAndScroll": "ƒ bound validateFieldsAndScroll() {}" }, "readOnlyMode": true, "saveCableLineFieldData": "ƒ () {}" }];
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!
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
A behemoth of a JSON object! After parsing the JSON, I'll provide a concise answer. **Key Findings:** 1. The first part of the response appears to be a JavaScript object containing various properties related to a contract selection process. 2. The second part is an array of individual test cases, each defining a benchmarking scenario. 3. The third part is the latest benchmark result, which reports performance data for two specific tests (`_.isEqual` and `JSON.stringify`) executed by Chrome 114 on a Mac OS X 10.15.7 desktop. **My Answer:** I'll provide a simple response to match your format: "The contract selection process seems complex, but the individual test cases are straightforward."
Related benchmarks:
Lodash.isEqual vs JSON.stringify Equality Comparison for Shallow Array of Strings.
Lodash.isEqual vs JSON.stringify Equality Comparison for Shallow Array of Strings when comparison is not equal.
Lodash.isEqual vs JSON.stringify Equality Comparison for Shallow Array of Strings. Lodash v 4.17.11
Lodash.isEqual vs JSON.stringify Equality Comparison for Shallow Array of Strings. Testing 123
Lodash.isEqual vs JSON.stringify Equality Comparison for Shallow Array of Strings.s
Comments
Confirm delete:
Do you really want to delete benchmark?