{"ScriptPreparationCode":"function makeid() {\r\n var text = \u0022\u0022;\r\n var possible = \u0022ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\u0022;\r\n\r\n for (var i = 0; i \u003C 5; i\u002B\u002B)\r\n text \u002B= possible.charAt(Math.floor(Math.random() * possible.length));\r\n\r\n return text;\r\n}\r\n\r\nwindow.parentObj = {};\r\n\r\nconst samples = 1000;\r\n\r\nconst a = {};\r\n\r\nfor (let i = 0; i \u003C samples; i\u002B\u002B) {\r\n a[makeid()] = makeid();\r\n}\r\n\r\nconst b = JSON.parse(JSON.stringify(a));\r\n\r\nconst c = {};\r\n\r\nfor (let i = 0; i \u003C samples; i\u002B\u002B) {\r\n c[makeid()] = makeid();\r\n}\r\n\r\nwindow.parentObj = {a: a, b: b, c: c};\r\n\r\n","TestCases":[{"Name":"Object.entries","Code":"const a = window.parentObj.a;\r\nconst b = window.parentObj.b;\r\n\r\nconst entries = Object.entries(a);\r\n\r\nconst isNotEqual = entries.some(([k, v], i) =\u003E b[k] != v);\r\n\r\nif (isNotEqual)\r\n return false;\r\n\r\nreturn entries.length === Object.keys(b).length;","IsDeferred":false},{"Name":"Object for..in","Code":"const a = window.parentObj.a;\r\nconst b = window.parentObj.b;\r\n\r\nfor(var key in a) {\r\n if (a[key] != b[key])\r\n return false;\r\n};\r\n\r\nreturn Object.keys(a).length === Object.keys(b).length;\r\n","IsDeferred":false},{"Name":"Object for..in #2","Code":"const a = window.parentObj.a;\r\nconst b = window.parentObj.b;\r\n\r\nlet lengthA = 0;\r\n\r\nfor(var key in a) {\r\n lengthA = lengthA \u002B 1;\r\n if (a[key] != b[key])\r\n return false;\r\n};\r\n\r\nreturn lengthA === Object.keys(b).length;","IsDeferred":false},{"Name":"Object for..in #3","Code":"const a = window.parentObj.a;\r\nconst b = window.parentObj.b;\r\n\r\nlet lengthA = 0;\r\n\r\nfor(var key in a) {\r\n lengthA = lengthA \u002B 1;\r\n if (a[key] != b[key])\r\n return false;\r\n};\r\n\r\nlet lengthB = 0;\r\n\r\nfor(var key in b) {\r\n lengthB = lengthB \u002B 1;\r\n};\r\n\r\nreturn lengthA === lengthB;","IsDeferred":false}]}