Deep Copy vs JSON Stringify / JSON Parse

JavaScript performance comparison

Revision 8 of this test case created by

Preparation code


      
      <script>
Benchmark.prototype.setup = function() {
  function deepCopy(o) {
    var copy = o,
      k;
  
    if (o && typeof o === 'object') {
      copy = Object.prototype.toString.call(o) === '[object Array]' ? [] : {};
      for (k in o) {
        copy[k] = deepCopy(o[k]);
      }
    }
  
    return copy;
  }
  
  var uc = {
    "id": "WALMART_DOTCOM#15940142",
    "item_name": "4Ever Fit Fruit Blast The Isolate Strawberry Kiwi Dietary Supplement, 908g",
    "attributes": {
      "WALMART_STORES": {
        "vnpk_length_qty": {
          "attributeProperties": {},
          "values": [{
            "value": "5.5"
          }]
        },
        "brand_family_name": {
          "attributeProperties": {},
          "values": [{
            "value": "UNBRANDED"
          }]
        },
        "vnpk_cost_amt": {
          "attributeProperties": {},
          "values": [{
            "value": "32.98"
          }]
        },
        "item_height_qty": {
          "attributeProperties": {},
          "values": [{
            "value": "9.5"
          }]
        },
        "consumer_item_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "FRUIT BLAST NT"
          }]
        },
        "brand_id": {
          "attributeProperties": {},
          "values": [{
            "value": "320098"
          }]
        },
        "dept_subcatg_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "13424"
          }]
        },
        "whpk_length_qty": {
          "attributeProperties": {},
          "values": [{
            "value": "5.5"
          }]
        },
        "product_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "12013320"
          }]
        },
        "mdse_subgroup_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "51"
          }]
        },
        "mdse_subcatg_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "16"
          }]
        },
        "season_year": {
          "attributeProperties": {},
          "values": [{
            "value": "2011"
          }]
        },
        "item_width_qty": {
          "attributeProperties": {},
          "values": [{
            "value": "5.5"
          }]
        },
        "vendor_dept_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "40"
          }]
        },
        "brand_owner_name": {
          "attributeProperties": {},
          "values": [{
            "value": "UNBRANDED"
          }]
        },
        "mdse_catg_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "DIET AND HEALTH"
          }]
        },
        "item_length_qty": {
          "attributeProperties": {},
          "values": [{
            "value": "5.5"
          }]
        },
        "dept_category_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "5882"
          }]
        },
        "mdse_segment_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "30"
          }]
        },
        "mdse_subgroup_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "H&W OTC"
          }]
        },
        "fineline_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "OTHR ACT SPRT PILL"
          }]
        },
        "vnpk_weight_qty": {
          "attributeProperties": {},
          "values": [{
            "value": "2.25"
          }]
        },
        "mdse_segment_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "HEALTH AND WELLNESS"
          }]
        },
        "upc_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "ACTIVE NUTRI"
          }]
        },
        "product_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "FRUIT BLAST NT"
          }]
        },
        "upc_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "87193800290"
          }]
        },
        "vnpk_height_qty": {
          "attributeProperties": {},
          "values": [{
            "value": "9.5"
          }]
        },
        "item_weight_qty": {
          "attributeProperties": {},
          "values": [{
            "value": "2.25"
          }]
        },
        "Brand": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "brand_name",
            "attributeId": 10848,
            "isPrimary": true
          },
          "values": [{
            "value": "UNBRANDED"
          }]
        },
        "mdse_subcatg_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "DIET BARS"
          }]
        },
        "dept_subcatg_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "AN SPORTS PILL"
          }]
        },
        "brand_owner_id": {
          "attributeProperties": {},
          "values": [{
            "value": "604"
          }]
        },
        "whpk_height_qty": {
          "attributeProperties": {},
          "values": [{
            "value": "9.5"
          }]
        },
        "dept_catg_grp_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "COLD ALLERGY DIET ACTIVE"
          }]
        },
        "dept_category_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "ACTIVE NUTRITION"
          }]
        },
        "all_links_system_item_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "77024624"
          }]
        },
        "vendor_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "452094"
          }]
        },
        "dept_catg_grp_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "5159"
          }]
        },
        "vnpk_width_qty": {
          "attributeProperties": {},
          "values": [{
            "value": "5.5"
          }]
        },
        "vendor_name": {
          "attributeProperties": {},
          "values": [{
            "value": "EUROPA SPORTS PRODUCTS INC"
          }]
        },
        "fineline_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "534"
          }]
        },
        "item_cube_qty": {
          "attributeProperties": {},
          "values": [{
            "value": "0.166"
          }]
        },
        "vnpk_cube_qty": {
          "attributeProperties": {},
          "values": [{
            "value": "0.166"
          }]
        },
        "case_upc_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "1087193800290"
          }]
        },
        "item1_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "FRUIT BLAST NT"
          }]
        },
        "mdse_catg_nbr": {
          "attributeProperties": {},
          "values": [{
            "value": "3727"
          }]
        },
        "brand_family_id": {
          "attributeProperties": {},
          "values": [{
            "value": "646"
          }]
        },
        "item2_desc": {
          "attributeProperties": {},
          "values": [{
            "value": "ONLINE ONLY"
          }]
        }
      },
      "WALMART_DOTCOM": {
        "Item Class ID": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "ITEM_CLASS_ID",
            "attributeId": 94967,
            "isPrimary": true
          },
          "values": [{
            "value": "1"
          }]
        },
        "Primary Shelf ID": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "PRIMARY_SHELF_ID",
            "attributeId": 94974,
            "isPrimary": true
          },
          "values": [{
            "value": "1092397"
          }]
        },
        "TAG_CODE": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"0\",\"seller_id\":\"0\"}]"
          }]
        },
        "Return Thru WM": {
          "attributeProperties": {},
          "values": [{
            "value": "{\"display_attr_group_name\":\"Additional Specifications\",\"source_id\":\"2\",\"attr_site_display_flag\":\"N\",\"group_site_display_flag\":\"N\",\"display_attribute_id\":\"1266963\",\"display_order\":\"1\",\"attr_display_order\":\"50\",\"_value\":\"No\",\"display_value\":\"No\",\"display_attr_group_id\":\"75821\",\"group_display_order\":\"11\",\"source_name\":\"Walmart.com\",\"display_attr_name\":\"Return Thru WM\"}"
          }]
        },
        "IS_HAZARD_MATERIAL": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "RPPC_IND_FLAG": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "ITEM_CLASS_NAME": {
          "attributeProperties": {},
          "values": [{
            "value": "General"
          }]
        },
        "ORM-D Indicator": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "ORMD",
            "attributeId": 88820,
            "isPrimary": true
          },
          "values": [{
            "value": "N"
          }]
        },
        "THRESHOLD_SHIPPING_IND": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"Y\",\"seller_id\":\"0\"}]"
          }]
        },
        "BASE_ITEM_ID": {
          "attributeProperties": {},
          "values": [{
            "value": "15940142"
          }]
        },
        "Country of Origin: Assembly": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "ASSEMBLED_COUNTRY_OF_ORIGIN",
            "attributeId": 86098,
            "isPrimary": true
          },
          "values": [{
            "value": "[{\"value\":\"USA\",\"seller_id\":\"0\"}]"
          }]
        },
        "WM_DEPT_NUM": {
          "attributeProperties": {},
          "values": [{
            "value": "40"
          }]
        },
        "KEYWORDS": {
          "attributeProperties": {},
          "values": [{
            "value": "4Ever Fit Fruit Blast The Isolate Strawberry Kiwi Dietary Supplement, 4Ever Fit Fruit Blast, 908g, All Natural Dietary Supplement"
          }]
        },
        "PESTICIDE_IND_FLAG": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "Product Short Description": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "SHORT_DESCRIPTION",
            "attributeId": 84128,
            "isPrimary": true
          },
          "values": [{
            "value": "<p>4Ever Fits Fruit Blast The Isolate uses xylitol and stevia extract, both natural sweeteners. You won't find any artificial flavors, colors, or sweeteners in this protein. What you will find is an all natural whey protein isolate that uses a unique combination of cross-flow ultrafiltration and advanced microfiltration. This gentle process ensures that the protein is not denatured and allows the whey protein to be recovered in its natural proportions in the final product. Each serving contains 21 grams of protein, zero trans fat and only four grams of carbohydrates. It's perfect for any low-carb diet plan.</p>"
          }]
        },
        "VENDOR_PRICE_BLOCK": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "IS_ALWAYS_SHOW": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "BLOCK_S2S_FLAG": {
          "attributeProperties": {},
          "values": [{
            "value": "Y"
          }]
        },
        "DIMENSION_Y": {
          "attributeProperties": {},
          "values": [{
            "value": "{\"_value\":\"5.5\",\"SELLER_ID\":\"[\\\"0\\\"]\"}"
          }]
        },
        "PRICE_CHANGE_CODE": {
          "attributeProperties": {},
          "values": [{
            "value": "0"
          }]
        },
        "UPDATED_IN_PPROD": {
          "attributeProperties": {},
          "values": [{
            "value": "2013-09-14 01:19:05.0"
          }]
        },
        "IS_PIP_ELIGIBLE": {
          "attributeProperties": {},
          "values": [{
            "value": "Y"
          }]
        },
        "Primary Distributor ID": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "PRIMARY_DISTRIBUTOR_ID",
            "attributeId": 94991,
            "isPrimary": true
          },
          "values": [{
            "value": "9719"
          }]
        },
        "GIFT_IMAGE": {
          "attributeProperties": {},
          "values": [{
            "value": "0"
          }]
        },
        "Projected Yearly Sales Qty": {
          "attributeProperties": {},
          "values": [{
            "value": "{\"display_attr_group_name\":\"Additional Specifications\",\"source_id\":\"2\",\"attr_site_display_flag\":\"N\",\"group_site_display_flag\":\"N\",\"display_attribute_id\":\"1250826\",\"display_order\":\"1\",\"attr_display_order\":\"47\",\"_value\":\"100.0\",\"display_value\":\"100.0\",\"display_attr_group_id\":\"75821\",\"group_display_order\":\"11\",\"source_name\":\"Walmart.com\",\"display_attr_name\":\"Projected Yearly Sales Qty\"}"
          }]
        },
        "CHEMICAL_IND_FLAG": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "SHIP_CATEGORY_ID": {
          "attributeProperties": {},
          "values": [{
            "value": "9999"
          }]
        },
        "SELLER_ID": {
          "attributeProperties": {},
          "values": [{
            "value": "0"
          }]
        },
        "SOCIAL_NETWORK_LIKE": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "SHIPPING_CLASS_ID": {
          "attributeProperties": {},
          "values": [{
            "value": "0"
          }]
        },
        "MASTER_PACK_LENGTH": {
          "attributeProperties": {},
          "values": [{
            "value": "5.5"
          }]
        },
        "MAXIMUM_ITEMS": {
          "attributeProperties": {},
          "values": [{
            "value": "{\"_value\":\"24\",\"SELLER_ID\":\"[\\\"0\\\"]\"}"
          }]
        },
        "REORDER_PRIORITY_ELIGIBLE": {
          "attributeProperties": {},
          "values": [{
            "value": "Y"
          }]
        },
        "Return Option": {
          "attributeProperties": {},
          "values": [{
            "value": "{\"display_attr_group_name\":\"Additional Specifications\",\"source_id\":\"2\",\"attr_site_display_flag\":\"N\",\"group_site_display_flag\":\"N\",\"display_attribute_id\":\"1266964\",\"display_order\":\"1\",\"attr_display_order\":\"51\",\"_value\":\"1\",\"display_value\":\"1\",\"display_attr_group_id\":\"75821\",\"group_display_order\":\"11\",\"source_name\":\"Walmart.com\",\"display_attr_name\":\"Return Option\"}"
          }]
        },
        "DIMENSION_X": {
          "attributeProperties": {},
          "values": [{
            "value": "{\"_value\":\"9.5\",\"SELLER_ID\":\"[\\\"0\\\"]\"}"
          }]
        },
        "COMPONENTS_COUNTRY_OF_ORIGIN": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"USA\",\"seller_id\":\"0\"}]"
          }]
        },
        "FUEL_RESTRICTION_IND_FLAG": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "Start Date": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "START_DATE",
            "attributeId": 84129,
            "isPrimary": true
          },
          "values": [{
            "value": "{\"_value\":\"2011-04-01 00:00:00.0\",\"SELLER_ID\":\"[\\\"0\\\"]\"}"
          }]
        },
        "SHELF_DESCRIPTION": {
          "attributeProperties": {},
          "values": [{
            "value": "</p>"
          }]
        },
        "WRAP_CODE": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"0\",\"seller_id\":\"0\"}]"
          }]
        },
        "UPC": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "attributeId": 84131,
            "isPrimary": true
          },
          "values": [{
            "value": "0087193800290"
          }]
        },
        "RETURN_ALARM_PERC": {
          "attributeProperties": {},
          "values": [{
            "value": "5"
          }]
        },
        "BASE_ITEM_PRICE": {
          "attributeProperties": {},
          "values": [{
            "value": "57.88"
          }]
        },
        "ITEM_SHIP_CLASS": {
          "attributeProperties": {},
          "values": [{
            "value": "0"
          }]
        },
        "DISPLAY_GROUP_TYPE": {
          "attributeProperties": {},
          "values": [{
            "value": "IDG"
          }]
        },
        "End Date": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "END_DATE",
            "attributeId": 84117,
            "isPrimary": true
          },
          "values": [{
            "value": "2049-10-10 00:00:00.0"
          }]
        },
        "Private Label Indicator": {
          "attributeProperties": {},
          "values": [{
            "value": "{\"display_attr_group_name\":\"Additional Specifications\",\"source_id\":\"2\",\"attr_site_display_flag\":\"N\",\"group_site_display_flag\":\"N\",\"display_attribute_id\":\"1196252\",\"display_order\":\"1\",\"attr_display_order\":\"16\",\"_value\":\"No\",\"display_value\":\"No\",\"display_attr_group_id\":\"75821\",\"group_display_order\":\"11\",\"source_name\":\"Walmart.com\",\"display_attr_name\":\"Private Label Indicator\"}"
          }]
        },
        "VENDOR_SEQ_NUM": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"0\",\"seller_id\":\"0\"}]"
          }]
        },
        "INBOUND_ITEM_CLASS": {
          "attributeProperties": {},
          "values": [{
            "value": "C"
          }]
        },
        "IS_REPLENISHABLE": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"N\",\"seller_id\":\"0\"}]"
          }]
        },
        "IS_PERISHABLE": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "CALL_TO_ACTION_MSG_ID": {
          "attributeProperties": {},
          "values": [{
            "value": "500"
          }]
        },
        "META_DESC": {
          "attributeProperties": {},
          "values": [{
            "value": "Purchase 4Ever Fit Fruit Blast The Isolate Strawberry Kiwi Dietary Supplement at an always low price from Walmart.com. Save money. Live better."
          }]
        },
        "DISPLAY_GROUP_NAME": {
          "attributeProperties": {},
          "values": [{
            "value": "Vitamins & Herbs"
          }]
        },
        "PRICE_TYPE_ID": {
          "attributeProperties": {},
          "values": [{
            "value": "2"
          }]
        },
        "MASTER_PACK_HEIGHT": {
          "attributeProperties": {},
          "values": [{
            "value": "9.5"
          }]
        },
        "ALLOW_COMPETITION": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "Type": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "attributeId": 92341,
            "isPrimary": true
          },
          "values": [{
            "value": "{\"display_attr_group_name\":\"DESCRIPTION\",\"source_id\":\"2\",\"attr_site_display_flag\":\"Y\",\"group_site_display_flag\":\"Y\",\"display_attribute_id\":\"1196253\",\"display_order\":\"55\",\"attr_display_order\":\"1\",\"_value\":\"Protein\",\"display_value\":\"Protein\",\"display_attr_group_id\":\"288366\",\"group_display_order\":\"22\",\"source_name\":\"Walmart.com\",\"display_attr_name\":\"Type\"}"
          }]
        },
        "Category": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "Finer Categorizations",
            "attributeId": 93381,
            "isPrimary": true
          },
          "values": [{
            "value": "{\"display_attr_group_name\":\"PRODUCT_DETAILS\",\"source_id\":\"2\",\"attr_site_display_flag\":\"Y\",\"group_site_display_flag\":\"Y\",\"display_attribute_id\":\"1196254\",\"display_order\":\"10\",\"attr_display_order\":\"1\",\"_value\":\"Sports Nutrition\",\"display_value\":\"Sports Nutrition\",\"display_attr_group_id\":\"288371\",\"group_display_order\":\"27\",\"source_name\":\"Walmart.com\",\"display_attr_name\":\"Finer Categorizations\"}"
          }]
        },
        "CURR_ITEM_PRICE": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"49.15\",\"seller_id\":\"0\"}]"
          }]
        },
        "Show Button In": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "SHOW_BUTTON_IN",
            "attributeId": 94976,
            "isPrimary": true
          },
          "values": [{
            "value": "3"
          }]
        },
        "AEROSOL_IND_FLAG": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "Form": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "attributeId": 10534,
            "isPrimary": true
          },
          "values": [{
            "value": "{\"display_attr_group_name\":\"DESCRIPTION\",\"source_id\":\"2\",\"attr_site_display_flag\":\"N\",\"group_site_display_flag\":\"Y\",\"display_attribute_id\":\"1212633\",\"display_order\":\"10\",\"attr_display_order\":\"2\",\"_value\":\"Powder\",\"display_value\":\"Powder\",\"display_attr_group_id\":\"288366\",\"group_display_order\":\"22\",\"source_name\":\"Walmart.com\",\"display_attr_name\":\"Form\"}"
          }]
        },
        "Product Long Description": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "LONG_DESCRIPTION",
            "attributeId": 84122,
            "isPrimary": true
          },
          "values": [{
            "value": "[{\"value\":\"<li>All natural<li>Great tasting, mixes instantly<li>21g of protein per serving\",\"seller_id\":\"0\"}]"
          }]
        },
        "Model ": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "MODEL_NUM",
            "attributeId": 10337,
            "isPrimary": true
          },
          "values": [{
            "value": "4050074"
          }]
        },
        "SAI_FLAG": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"N\",\"seller_id\":\"0\"}]"
          }]
        },
        "IS_MERCH_OK": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "Primary Category Path": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "PRIMARY_CATEGORY_PATH",
            "attributeId": 94984,
            "isPrimary": true
          },
          "values": [{
            "value": "0:976760:1005863:1092397"
          }]
        },
        "MAX_EMAILS": {
          "attributeProperties": {},
          "values": [{
            "value": "0"
          }]
        },
        "Battery Type": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "attributeId": 10358,
            "isPrimary": true
          },
          "values": [{
            "value": "{\"display_attr_group_name\":\"Additional Specifications\",\"source_id\":\"2\",\"attr_site_display_flag\":\"Y\",\"group_site_display_flag\":\"N\",\"display_attribute_id\":\"1239829\",\"display_order\":\"1\",\"attr_display_order\":\"40\",\"_value\":\"Does Not Contain a Battery\",\"display_value\":\"Does Not Contain a Battery\",\"display_attr_group_id\":\"75821\",\"group_display_order\":\"11\",\"source_name\":\"Walmart.com\",\"display_attr_name\":\"Battery Type\"}"
          }]
        },
        "BLOCK_COST_CHANGE": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "ORIGINAL_PRICE": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"49.88\",\"seller_id\":\"0\"}]"
          }]
        },
        "PAGE_TITLE": {
          "attributeProperties": {},
          "values": [{
            "value": "4Ever Fit Fruit Blast The Isolate Strawberry Kiwi Dietary Supplement - Walmart.com"
          }]
        },
        "GTIN": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "attributeId": 84118,
            "isPrimary": true
          },
          "values": [{
            "value": "00871938002905"
          }]
        },
        "Has Warranty": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "HAS_WARRANTY",
            "attributeId": 10342,
            "isPrimary": true
          },
          "values": [{
            "value": "N"
          }]
        },
        "COMPANY_ID": {
          "attributeProperties": {},
          "values": [{
            "value": "9390"
          }]
        },
        "WAREHOUSE_PACK_QTY": {
          "attributeProperties": {},
          "values": [{
            "value": "1"
          }]
        },
        "RPT_SUBCATEGORY_ID": {
          "attributeProperties": {},
          "values": [{
            "value": "9926"
          }]
        },
        "PAN_ZOOM_TYPE_ID": {
          "attributeProperties": {},
          "values": [{
            "value": "2"
          }]
        },
        "VARIANT_MAX_PRICE": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"49.15\",\"seller_id\":\"0\"}]"
          }]
        },
        "WM_HOST_DESCRIPTION": {
          "attributeProperties": {},
          "values": [{
            "value": "FRUIT BLAST NT"
          }]
        },
        "SUGG_RETAIL": {
          "attributeProperties": {},
          "values": [{
            "value": "61.27"
          }]
        },
        "MIN_QTY": {
          "attributeProperties": {},
          "values": [{
            "value": "1"
          }]
        },
        "DOMAIN_VIEW_CODE": {
          "attributeProperties": {},
          "values": [{
            "value": "9999"
          }]
        },
        "Multipack Indicator": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "Multi Pack Indicator",
            "attributeId": 95396,
            "isPrimary": true
          },
          "values": [{
            "value": "{\"display_attr_group_name\":\"Additional Specifications\",\"source_id\":\"2\",\"attr_site_display_flag\":\"Y\",\"group_site_display_flag\":\"N\",\"display_attribute_id\":\"1238153\",\"display_order\":\"1\",\"attr_display_order\":\"37\",\"_value\":\"No\",\"display_value\":\"No\",\"display_attr_group_id\":\"75821\",\"group_display_order\":\"11\",\"source_name\":\"Walmart.com\",\"display_attr_name\":\"Multi Pack Indicator\"}"
          }]
        },
        "VARIANT_MIN_PRICE": {
          "attributeProperties": {},
          "values": [{
            "value": "49.15"
          }]
        },
        "Assembled Product Weight": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "WEIGHT",
            "attributeId": 10332,
            "isPrimary": true
          },
          "values": [{
            "value": "{\"_value\":\"2.25\",\"SELLER_ID\":\"[\\\"0\\\"]\"}"
          }]
        },
        "IS_CARE_PLAN_ELIGIBLE": {
          "attributeProperties": {},
          "values": [{
            "value": "Y"
          }]
        },
        "Created Date": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "CREATED_DTM",
            "attributeId": 83888,
            "isPrimary": true
          },
          "values": [{
            "value": "2011-03-01 16:02:23.0"
          }]
        },
        "Partner Originated Base UPC": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "PARTNER_ORIGINAL_BASE_UPC",
            "attributeId": 84120,
            "isPrimary": true
          },
          "values": [{
            "value": "0087193800290"
          }]
        },
        "GM_TARGET": {
          "attributeProperties": {},
          "values": [{
            "value": "0.3388"
          }]
        },
        "DOMAIN_BUY_CODE": {
          "attributeProperties": {},
          "values": [{
            "value": "9999"
          }]
        },
        "ITEM_NAME": {
          "attributeProperties": {},
          "values": [{
            "value": "4Ever Fit Fruit Blast The Isolate Strawberry Kiwi Dietary Supplement, 908g"
          }]
        },
        "PCP Seller ID": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "PCP_SELLER_ID",
            "attributeId": 94987,
            "isPrimary": true
          },
          "values": [{
            "value": "0"
          }]
        },
        "Composite Wood Code": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "Composite Wood",
            "attributeId": 85899,
            "isPrimary": true
          },
          "values": [{
            "value": "{\"display_attr_group_name\":\"Additional Specifications\",\"source_id\":\"2\",\"attr_site_display_flag\":\"N\",\"group_site_display_flag\":\"N\",\"display_attribute_id\":\"1196251\",\"display_order\":\"1\",\"attr_display_order\":\"15\",\"_value\":\"1\",\"display_value\":\"1\",\"display_attr_group_id\":\"75821\",\"group_display_order\":\"11\",\"source_name\":\"Walmart.com\",\"display_attr_name\":\"Composite Wood\"}"
          }]
        },
        "IS_PUT_PCH_ELIGIBLE": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "DISPLAY_GROUP_ID": {
          "attributeProperties": {},
          "values": [{
            "value": "1353"
          }]
        },
        "IS_HOME_INST_ELIGIBLE": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "SAFETY_REQUIREMENTS": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "IS_CONTENT_OK": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "CPSC-Regulated Indicator": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "CPSC Regulated Indicator",
            "attributeId": 86102,
            "isPrimary": true
          },
          "values": [{
            "value": "{\"display_attr_group_name\":\"Additional Specifications\",\"source_id\":\"2\",\"attr_site_display_flag\":\"N\",\"group_site_display_flag\":\"N\",\"display_attribute_id\":\"1196250\",\"display_order\":\"1\",\"attr_display_order\":\"14\",\"_value\":\"No\",\"display_value\":\"No\",\"display_attr_group_id\":\"75821\",\"group_display_order\":\"11\",\"source_name\":\"Walmart.com\",\"display_attr_name\":\"CPSC Regulated Indicator\"}"
          }]
        },
        "Warranty Information": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "SUPPLIER_WARRANTY",
            "attributeId": 10669,
            "isPrimary": true
          },
          "values": [{
            "value": "{\"_value\":\"N/A\",\"SELLER_ID\":\"[\\\"0\\\"]\"}"
          }]
        },
        "BASE_SUGG_PRICE": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"49.88\",\"seller_id\":\"0\"}]"
          }]
        },
        "Display Status": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "DISPLAY_STATUS",
            "attributeId": 94989,
            "isPrimary": true
          },
          "values": [{
            "value": "3"
          }]
        },
        "DIMENSION_Z": {
          "attributeProperties": {},
          "values": [{
            "value": "{\"_value\":\"5.5\",\"SELLER_ID\":\"[\\\"0\\\"]\"}"
          }]
        },
        "IS_INBOUND_DISTS_OVERRIDDEN": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "Modified Date": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "MODIFIED_DTM",
            "attributeId": 83899,
            "isPrimary": true
          },
          "values": [{
            "value": "[{\"value\":\"2014-03-14 16:46:38.0\",\"seller_id\":\"0\"}]"
          }]
        },
        "BLOCK_PRICE_INCREASE": {
          "attributeProperties": {},
          "values": [{
            "value": "Y"
          }]
        },
        "RETURN_ALARM_EMAIL_FLAG": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "IS_PREORDER": {
          "attributeProperties": {},
          "values": [{
            "value": "{\"_value\":\"N\",\"SELLER_ID\":\"[\\\"0\\\"]\"}"
          }]
        },
        "IS_SELFPRICING_KIT": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "GIFT_REGISTRY_ITEM": {
          "attributeProperties": {},
          "values": [{
            "value": "Y"
          }]
        },
        "Warranty Length": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "WARRANTY_LENGTH",
            "attributeId": 10343,
            "isPrimary": true
          },
          "values": [{
            "value": "{\"_value\":\"N/A\",\"SELLER_ID\":\"[\\\"0\\\"]\"}"
          }]
        },
        "STORE_PICKUPABLE": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "VENDOR_ITEM_NUM": {
          "attributeProperties": {},
          "values": [{
            "value": "4050074"
          }]
        },
        "STOCK_WATERMARK": {
          "attributeProperties": {},
          "values": [{
            "value": "2"
          }]
        },
        "CURR_SUGG_PRICE": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"49.88\",\"seller_id\":\"0\"}]"
          }]
        },
        "PRICE_CHANGE_REASON_CODE": {
          "attributeProperties": {},
          "values": [{
            "value": "BP"
          }]
        },
        "AIR_SHIPPABLE": {
          "attributeProperties": {},
          "values": [{
            "value": "Y"
          }]
        },
        "VIEW_IN": {
          "attributeProperties": {},
          "values": [{
            "value": "3"
          }]
        },
        "NON_SPILLABLE_BATTERY_IND_FLAG": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "VENDOR_PACK_QTY": {
          "attributeProperties": {},
          "values": [{
            "value": "1"
          }]
        },
        "PACKING_SLIP_CODE": {
          "attributeProperties": {},
          "values": [{
            "value": "0"
          }]
        },
        "NUMBER_OF_BOXES": {
          "attributeProperties": {},
          "values": [{
            "value": "1"
          }]
        },
        "IS_BASE_ITEM": {
          "attributeProperties": {},
          "values": [{
            "value": "Y"
          }]
        },
        "MASTER_PACK_WIDTH": {
          "attributeProperties": {},
          "values": [{
            "value": "5.5"
          }]
        },
        "PARTIAL_UPD_REQ_FLG": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "ITEM_PO_TYPE": {
          "attributeProperties": {},
          "values": [{
            "value": "03"
          }]
        },
        "TWE Tax Code": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "TWE_TAX_CODE",
            "attributeId": 88838,
            "isPrimary": true
          },
          "values": [{
            "value": "2048154"
          }]
        },
        "URL": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "Item Type": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "ITEM_TYPE",
            "attributeId": 94968,
            "isPrimary": true
          },
          "values": [{
            "value": "0"
          }]
        },
        "GIFT_WRAP_TYPE_ID": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"1\",\"seller_id\":\"0\"}]"
          }]
        },
        "WM_ITEM_NUM": {
          "attributeProperties": {},
          "values": [{
            "value": "004005883"
          }]
        },
        "SS_THRESHOLD_SHIPPING": {
          "attributeProperties": {},
          "values": [{
            "value": "{\"_value\":\"Y\",\"SELLER_ID\":\"[\\\"0\\\"]\"}"
          }]
        },
        "WALMART_CANONICAL_URL": {
          "attributeProperties": {},
          "values": [{
            "value": "/ip/4Ever-Fit-Fruit-Blast-The-Isolate-Strawberry-Kiwi-Dietary-Supplement-908g/15940142"
          }]
        },
        "BRAND_ID": {
          "attributeProperties": {},
          "values": [{
            "value": "{\"_value\":\"71770\",\"SELLER_ID\":\"[\\\"0\\\"]\"}"
          }]
        },
        "Brand Code": {
          "attributeProperties": {},
          "values": [{
            "value": "{\"display_attr_group_name\":\"Additional Specifications\",\"source_id\":\"2\",\"attr_site_display_flag\":\"N\",\"group_site_display_flag\":\"N\",\"display_attribute_id\":\"1250827\",\"display_order\":\"1\",\"attr_display_order\":\"48\",\"_value\":\"84602\",\"display_value\":\"84602\",\"display_attr_group_id\":\"75821\",\"group_display_order\":\"11\",\"source_name\":\"Walmart.com\",\"display_attr_name\":\"Brand Code\"}"
          }]
        },
        "SOCIAL_NETWORK_SHARE": {
          "attributeProperties": {},
          "values": [{
            "value": "N"
          }]
        },
        "Brand": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "BRAND_NAME",
            "attributeId": 10848,
            "isPrimary": true
          },
          "values": [{
            "value": "{\"_value\":\"4EVER\",\"SELLER_ID\":\"[\\\"0\\\"]\"}"
          }]
        },
        "VENDOR_NO": {
          "attributeProperties": {},
          "values": [{
            "value": "[{\"value\":\"52533\",\"seller_id\":\"0\"}]"
          }]
        },
        "Primary Content Provider ID": {
          "attributeProperties": {
            "pcsVersion": "2.0",
            "originalAttribute": "PRIMARY_CONT_PROVIDER_ID",
            "attributeId": 83907,
            "isPrimary": true
          },
          "values": [{
            "value": "2"
          }]
        },
        "CHAR_PRIMARY_CATEGORY_PATH": {
          "attributeProperties": {},
          "values": [{
            "value": "Health/Vitamins/Sports & Performance Supplements"
          }]
        },
        "IS_EMPLOYEE_DISCOUNTABLE": {
          "attributeProperties": {},
          "values": [{
            "value": "Y"
          }]
        }
      },
      "PCS_STORE": {
        "Product Type": {
          "attributeProperties": {
            "attributeId": 84127,
            "isPrimary": true
          },
          "values": [{
            "value": "Books"
          }]
        },
        "Product Segment": {
          "attributeProperties": {
            "attributeId": 84125,
            "isPrimary": true
          },
          "values": [{}]
        }
      }
    },
    "pgid": "7c8cbee3128a325805fc95b13c5e47c862bf00c260b2373baba14f81481d91b9",
    "IDS": {
      "WUPC": "46LKZ50V25KP"
    }
  }

};
</script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
Deep Copy
var bes = deepCopy(uc)
pending…
JSON Stringify / JSON Parse
var bes = JSON.parse(JSON.stringify(uc))
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL.

0 Comments