{"ScriptPreparationCode":" var totalBytes = 1024 * 1024;\r\n var buffer = new ArrayBuffer(totalBytes);\r\n // fill\r\n var dv = new DataView(buffer);\r\n for (i=0; i\u003CtotalBytes; i\u002B\u002B) {\r\n \t num = Math.floor(Math.random()*256);\r\n \t dv.setUint8(i,num,true);\r\n }\r\n \r\n function readUnsignedByte(stream){\r\n var l=stream[seek];\r\n seek=seek\u002B1;return l;\r\n }\r\n \t\r\n var seek=0;\r\n var stream = new Uint8Array(buffer);","TestCases":[{"Name":"Dataview","Code":"for (i=0; i\u003CtotalBytes; i\u002B\u002B) {\r\n\t num = dv.getUint8(i);\t \r\n}","IsDeferred":false},{"Name":"Custom","Code":"for (i=0; i\u003CtotalBytes; i\u002B\u002B) {\r\n\tnum = readUnsignedByte(stream);\t \r\n}","IsDeferred":false},{"Name":"Basecase - Just loop","Code":"for (i=0; i\u003CtotalBytes; i\u002B\u002B) { \r\n}","IsDeferred":false}]}