{"ScriptPreparationCode":null,"TestCases":[{"Name":"switch case","Code":"function thing(j)\r\n{\r\n switch(j)\r\n {\r\n case \u00270\u0027:\r\n return \u0022zero\u0022;\r\n case \u00271\u0027:\r\n return \u0022one\u0022;\r\n case \u00272\u0027:\r\n return \u0022two\u0022;\r\n case \u00273\u0027:\r\n return \u0022three\u0022;\r\n case \u00274\u0027:\r\n return \u0022four\u0022;\r\n case \u00275\u0027:\r\n return \u0022five\u0022;\r\n case \u00276\u0027:\r\n return \u0022six\u0022;\r\n case \u00277\u0027:\r\n return \u0022seven\u0022;\r\n case \u00278\u0027:\r\n return \u0022eight\u0022;\r\n case \u00279\u0027:\r\n return \u0022nine\u0022;\r\n }\r\n}\r\n\r\nfor(let i = 0; i \u003C 100000; i\u002B\u002B)\r\n{\r\n thing((i % 10).toString());\r\n}\r\n\r\n\r\n","IsDeferred":false},{"Name":"jump hash map object","Code":"function zero()\r\n{\r\n return \u0022zero\u0022;\r\n}\r\n\r\nfunction one()\r\n{\r\n return \u0022one\u0022;\r\n}\r\n\r\nfunction two()\r\n{\r\n return \u0022two\u0022;\r\n}\r\n\r\nfunction three()\r\n{\r\n return \u0022three\u0022;\r\n}\r\n\r\nfunction four()\r\n{\r\n return \u0022four\u0022;\r\n}\r\n\r\nfunction five()\r\n{\r\n return \u0022five\u0022;\r\n}\r\n\r\nfunction six()\r\n{\r\n return \u0022six\u0022;\r\n}\r\n\r\nfunction seven()\r\n{\r\n return \u0022seven\u0022;\r\n}\r\n\r\nfunction eight()\r\n{\r\n return \u0022eight\u0022;\r\n}\r\n\r\nfunction nine()\r\n{\r\n return \u0022nine\u0022;\r\n}\r\n\r\nlet jumpMap = {\r\n \u00270\u0027: zero,\r\n \u00271\u0027: one,\r\n \u00272\u0027: two,\r\n \u00273\u0027: three,\r\n \u00274\u0027: four,\r\n \u00275\u0027: five,\r\n \u00276\u0027: six,\r\n \u00277\u0027: seven,\r\n \u00278\u0027: eight,\r\n \u00279\u0027: nine\r\n};\r\n\r\n\r\n\r\nfor(let i = 0; i \u003C 100000; i\u002B\u002B)\r\n{\r\n jumpMap[(i % 10).toString()]();\r\n}\r\n","IsDeferred":false},{"Name":"jump map instance","Code":"function zero()\r\n{\r\n return \u0022zero\u0022;\r\n}\r\n\r\nfunction one()\r\n{\r\n return \u0022one\u0022;\r\n}\r\n\r\nfunction two()\r\n{\r\n return \u0022two\u0022;\r\n}\r\n\r\nfunction three()\r\n{\r\n return \u0022three\u0022;\r\n}\r\n\r\nfunction four()\r\n{\r\n return \u0022four\u0022;\r\n}\r\n\r\nfunction five()\r\n{\r\n return \u0022five\u0022;\r\n}\r\n\r\nfunction six()\r\n{\r\n return \u0022six\u0022;\r\n}\r\n\r\nfunction seven()\r\n{\r\n return \u0022seven\u0022;\r\n}\r\n\r\nfunction eight()\r\n{\r\n return \u0022eight\u0022;\r\n}\r\n\r\nfunction nine()\r\n{\r\n return \u0022nine\u0022;\r\n}\r\n\r\nlet jumpMap = new Map();\r\n\r\njumpMap.set(\u00270\u0027, zero)\r\njumpMap.set(\u00271\u0027, one)\r\njumpMap.set(\u00272\u0027, two)\r\njumpMap.set(\u00273\u0027, three)\r\njumpMap.set(\u00274\u0027, four)\r\njumpMap.set(\u00275\u0027, five)\r\njumpMap.set(\u00276\u0027, six)\r\njumpMap.set(\u00277\u0027, seven)\r\njumpMap.set(\u00278\u0027, eight)\r\njumpMap.set(\u00279\u0027, nine)\r\n\r\nfor(let i = 0; i \u003C 100000; i\u002B\u002B)\r\n{\r\n jumpMap.get((i % 10).toString())();\r\n}\r\n","IsDeferred":false},{"Name":"else if","Code":"function thing(j)\r\n{\r\n if (j === \u00270\u0027) {\r\n return \u0027zero\u0027;\r\n } else if (j === \u00271\u0027) {\r\n return \u0027one\u0027; \r\n } else if (j === \u00272\u0027) {\r\n return \u0027two\u0027; \r\n } else if (j === \u00273\u0027) {\r\n return \u0027three\u0027; \r\n } else if (j === \u00274\u0027) {\r\n return \u0027four\u0027;\r\n } else if (j === \u00275\u0027) {\r\n return \u0027five\u0027;\r\n } else if (j === \u00276\u0027) {\r\n return \u0027six\u0027;\r\n } else if (j === \u00277\u0027) {\r\n return \u0027seven\u0027;\r\n } else if (j === \u00278\u0027) {\r\n return \u0027eight\u0027; \r\n } else if (j === \u00279\u0027) {\r\n return \u0027nine\u0027; \r\n }\r\n}\r\n\r\nfor(let i = 0; i \u003C 100000; i\u002B\u002B)\r\n{\r\n thing((i % 10).toString());\r\n}\r\n\r\n\r\n","IsDeferred":false}]}