{"ScriptPreparationCode":null,"TestCases":[{"Name":"function instance","Code":"function func(v) {\r\n const instance = { a: v }\r\n instance.b = function() {\r\n return instance.a\r\n }\r\n return instance\r\n}\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n const instance = func(i)\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n}","IsDeferred":false},{"Name":"new Class","Code":"class Class {\r\n constructor(v) {\r\n this.a = v\r\n this.b = function() {\r\n return this.a\r\n }\r\n }\r\n}\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n const instance = new Class(i)\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n}","IsDeferred":false},{"Name":"new Function","Code":"function Func(v) {\r\n this.a = v\r\n this.b = function() {\r\n return this.a\r\n }\r\n}\r\n\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n const instance = new Func(i)\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n}","IsDeferred":false},{"Name":"new Class singletone function","Code":"function func() {\r\n\treturn this.a\r\n}\r\nclass Class {\r\n constructor(v) {\r\n this.a = v\r\n this.b = func\r\n }\r\n}\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n const instance = new Class(i)\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n}","IsDeferred":false},{"Name":"function lexical","Code":"function func(v) {\r\n let a = v\r\n function b() {\r\n return a\r\n }\r\n return { b }\r\n}\r\nfor (let i = 0; i \u003C 100; i\u002B\u002B) {\r\n const instance = func(i)\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n instance.b()\r\n}","IsDeferred":false}]}