{"ScriptPreparationCode":"const OBJ = {\r\n \u0027a\u0027: 1,\r\n \u0027b\u0027: 1,\r\n \u0027c\u0027: 1,\r\n \u0027d\u0027: 1,\r\n \u0027e\u0027: 1,\r\n \u0027f\u0027: 1,\r\n \u0027g\u0027: 1\r\n};\r\nconst RUNS = 10_000;","TestCases":[{"Name":"for-in","Code":"for (let i = 0; i \u003C RUNS; i\u002B\u002B) {\r\n const arr = [];\r\n for (const key in OBJ) {\r\n arr.push(key); \r\n }\r\n}","IsDeferred":false},{"Name":"Object.keys() -\u003E for-loop","Code":"for (let i = 0; i \u003C RUNS; i\u002B\u002B) {\r\n const arr = [];\r\n const keys = Object.keys(OBJ)\r\n for (let i = 0; i \u003C keys.length; i\u002B\u002B) {\r\n arr.push(keys[i]); \r\n };\r\n}","IsDeferred":false},{"Name":"Object.keys() -\u003E for-each","Code":"for (let i = 0; i \u003C RUNS; i\u002B\u002B) {\r\n const arr = []; \r\n Object.keys(OBJ).forEach(key =\u003E arr.push(key));\r\n}","IsDeferred":false}]}