{"ScriptPreparationCode":null,"TestCases":[{"Name":"str substr replace","Code":"var x = 0;\r\nvar TOTAL_STRINGS = 1000;\r\nvar data = \u002200000000000000000000\u0022;\r\n\r\nwhile (x \u003C TOTAL_STRINGS) {\r\n const str = data.substr(0,5) \u002B \u00271\u0027 \u002B data.substr(6);\r\n x \u002B= 1;\r\n}\r\n","IsDeferred":false},{"Name":"regex replace","Code":"var x = 0;\r\nvar TOTAL_STRINGS = window.TOTAL_STRINGS;\r\nvar data = \u002200000000000000000000\u0022;\r\nconst regex = /(\\w{5})0(.*)/gm;\r\nconst subst = \u0060$11$2\u0060;\r\n\r\nwhile (x \u003C TOTAL_STRINGS) {\r\n const str = data.replace(regex,subst);\r\n x \u002B= 1;\r\n}\r\n","IsDeferred":false}]}