{"ScriptPreparationCode":"function get_data (){\r\nconst a = [ ], b = [ ] \r\nfor(let i=0; i\u003C1000; \u002B\u002Bi)\r\n {\r\n const v = Math.random().toPrecision(50)\r\n a.push(v)\r\n b.push(v)\r\n }\r\n return [a, b]\r\n}\r\n","TestCases":[{"Name":"a[i].startsWith(b[i]) when a[i] strictly equals b[i]","Code":"{\r\n const [a, b] = get_data()\r\n const pre = Date.now()\r\n let test = true\r\n for(let j=0; j\u003C1000; \u002B\u002Bj)\r\n for(let i=0; i\u003C1000; \u002B\u002Bi)\r\n test \u0026= a[i].startsWith(b[i])\r\n const post = Date.now()\r\n console.log(test === true, post - pre)\r\n}","IsDeferred":false},{"Name":"a[i].startsWith(b[j]) when a[i] different than b[j]","Code":"{\r\n const [a, b] = get_data()\r\n const pre = Date.now()\r\n let test = true\r\n for(let j=1; j\u003C1000; \u002B\u002Bj)\r\n for(let i=0; i\u003C1000; \u002B\u002Bi)\r\n test |= a[i].startsWith(b[j])\r\n const post = Date.now()\r\n console.log(test === false, post - pre)\r\n}\r\n","IsDeferred":false},{"Name":"a[i] === b[i] when a[i] strictly equals b[i]","Code":"{\r\n const [a, b] = get_data()\r\n const pre = Date.now()\r\n let test = true\r\n for(let j=0; j\u003C1000; \u002B\u002Bj)\r\n for(let i=0; i\u003C1000; \u002B\u002Bi)\r\n test \u0026= a[i] === b[i]\r\n const post = Date.now()\r\n console.log(test === true, post - pre)\r\n}\r\n","IsDeferred":false},{"Name":"a[i] === b[j] when a[i] different than b[j]","Code":"{\r\n const [a, b] = get_data()\r\n const pre = Date.now()\r\n let test = true\r\n for(let j=1; j\u003C1000; \u002B\u002Bj)\r\n for(let i=0; i\u003C1000; \u002B\u002Bi)\r\n test |= a[i] === b[j]\r\n const post = Date.now()\r\n console.log(test === false, post - pre)\r\n}","IsDeferred":false}]}