{"ScriptPreparationCode":"var cnt = 500 * 1024;\r\nvar str = []\r\nfor(var i=0; i \u003C cnt; i\u002B\u002B) {\r\n str.push( String.fromCharCode(Math.random() * 94 \u002B 32) );\r\n}\r\nstr = str.join(\u0022\u0022);\r\n\r\nvar regex = function(count) {\r\n var rgx = new RegExp(\u0022[\\\\s\\\\S]{1,\u0022 \u002B count \u002B \u0022}\u0022, \u0022g\u0022);\r\n var parts = str.match(rgx);\r\n};\r\n\r\nvar slice = function(count) {\r\n var parts = [];\r\n for(var i = 0, len = str.length; i \u003C len; i \u002B= count) {\r\n parts.push( str.slice(i, i \u002B count) );\r\n }\r\n};\r\n\r\nvar substr = function(count) {\r\n var parts = [];\r\n for(var i = 0, len = str.length; i \u003C len; i \u002B= count) {\r\n parts.push( str.substr(i, count) );\r\n }\r\n};","TestCases":[{"Name":"Testing Regex, Length 1","Code":"regex(1);","IsDeferred":false},{"Name":"Testing Regex, Length 10","Code":"regex(10);","IsDeferred":false},{"Name":"Testing Regex, Length 100","Code":"regex(100);","IsDeferred":false},{"Name":"Testing Regex, Length 9 kB","Code":"regex(9 * 1024);","IsDeferred":false},{"Name":"Testing Slice, Length 1","Code":"slice(1);","IsDeferred":false},{"Name":"Testing Slice, Length 10","Code":"slice(10);","IsDeferred":false},{"Name":"Testing Slice, Length 100","Code":"slice(100);","IsDeferred":false},{"Name":"Testing Slice, Length 9 kB","Code":"slice(9 * 1024);","IsDeferred":false},{"Name":"Testing Substr, Length 1","Code":"substr(1);","IsDeferred":false},{"Name":"Testing Substr, Length 10","Code":"substr(10);","IsDeferred":false},{"Name":"Testing Substr, Length 100","Code":"substr(100);","IsDeferred":false},{"Name":"Testing Substr, Length 9 kB","Code":"substr(9 * 1024);","IsDeferred":false}]}