{"ScriptPreparationCode":"// Bereite eine globale Test-Map mit 50 Eintr\u00E4gen vor\r\nconst LIST_CACHE = new Map();\r\nfor (let i = 0; i \u003C 50; i\u002B\u002B) {\r\n const itemMock = { id: \u0060item_${i}\u0060, maxStack: 99, isUnique: false };\r\n LIST_CACHE.set(itemMock, Math.floor(Math.random() * 10) \u002B 1);\r\n}\r\n\r\n// Minimaler Mock f\u00FCr die #has Methode des Inventars (gibt immer true zur\u00FCck, um reinen Schleifen-Overhead zu messen)\r\nconst inventoryMock = {\r\n has: function(item, count) {\r\n // Simuliere minimale Logik, damit der JIT die Schleife nicht wegoptimiert\r\n return item.maxStack \u003E 0 \u0026\u0026 count \u003E 0;\r\n }\r\n};","TestCases":[{"Name":"keys() \u002B get()","Code":"let allItemsMatch = true;\r\n\r\nfor (const item of LIST_CACHE.keys()) {\r\n if (!inventoryMock.has(item, LIST_CACHE.get(item))) {\r\n allItemsMatch = false;\r\n break;\r\n }\r\n}","IsDeferred":false},{"Name":"forEach()","Code":"let allItemsMatch = true;\r\n\r\nLIST_CACHE.forEach((count, item) =\u003E {\r\n if (!allItemsMatch) return;\r\n if (!inventoryMock.has(item, count)) {\r\n allItemsMatch = false;\r\n }\r\n});","IsDeferred":false},{"Name":"entries()","Code":"let allItemsMatch = true;\r\n\r\nfor (const [item, count] of LIST_CACHE) {\r\n if (!inventoryMock.has(item, count)) {\r\n allItemsMatch = false;\r\n break;\r\n }\r\n}","IsDeferred":false}]}