{"ScriptPreparationCode":"var LIMIT = 10000;\r\n\r\nvar ARRAY = [];\r\nvar OBJECT = {};\r\nvar SPARSE_ARRAY = [];\r\nvar SPARSE_OBJECT = {};\r\n\r\nfor (var i = 0; i \u003C LIMIT; i\u002B\u002B) {\r\n ARRAY[i] = i;\r\n OBJECT[i] = i;\r\n if (i % 2 === 0) {\r\n SPARSE_ARRAY[i] = i;\r\n SPARSE_OBJECT[i] = i;\r\n }\r\n}","TestCases":[{"Name":"Array","Code":"var total = 0;\r\nvar target = ARRAY;\r\n\r\nfor (var i = 0; i \u003C LIMIT; i\u002B\u002B) {\r\n total \u002B= target[i];\r\n}\r\n\r\nreturn total;","IsDeferred":false},{"Name":"Object","Code":"var total = 0;\r\nvar target = OBJECT;\r\n\r\nfor (var i = 0; i \u003C LIMIT; i\u002B\u002B) {\r\n total \u002B= target[i];\r\n}\r\n\r\nreturn total;","IsDeferred":false},{"Name":"Sparse Array","Code":"var total = 0;\r\nvar target = SPARSE_ARRAY;\r\n\r\nfor (var i = 0; i \u003C LIMIT; i\u002B\u002B) {\r\n if (i in target) {\r\n total \u002B= target[i];\r\n }\r\n}\r\n\r\nreturn total;","IsDeferred":false},{"Name":"Sparse Object","Code":"var total = 0;\r\nvar target = SPARSE_OBJECT;\r\n\r\nfor (var i = 0; i \u003C LIMIT; i\u002B\u002B) {\r\n if (i in target) {\r\n total \u002B= target[i];\r\n }\r\n}\r\n\r\nreturn total;","IsDeferred":false}]}