{"ScriptPreparationCode":"var count = 1000;","TestCases":[{"Name":"trunc","Code":"for (var i = 0; i \u003C count; i\u002B\u002B) {\r\n Math.trunc(12.34 * 10);\r\n Math.trunc(567.89 * 10);\r\n}","IsDeferred":false},{"Name":"round","Code":"for (var i = 0; i \u003C count; i\u002B\u002B) {\r\n Math.round(12.34 * 10);\r\n Math.round(567.89 * 10);\r\n}","IsDeferred":false},{"Name":"floor","Code":"for (var i = 0; i \u003C count; i\u002B\u002B) {\r\n Math.floor(12.34 * 10);\r\n Math.floor(567.89 * 10);\r\n}","IsDeferred":false},{"Name":"parseFloat to int","Code":"for (var i = 0; i \u003C count; i\u002B\u002B) {\r\n parseFloat((12.34 * 10).toFixed());\r\n parseFloat((567.89 * 10).toFixed());\r\n}","IsDeferred":false},{"Name":"~~","Code":"for (var i = 0; i \u003C count; i\u002B\u002B) {\r\n ~~(12.34 * 10);\r\n ~~(567.89 * 10);\r\n}","IsDeferred":false},{"Name":"|0","Code":"for (var i = 0; i \u003C count; i\u002B\u002B) {\r\n (12.34 * 10 |0);\r\n (567.89 * 10 |0);\r\n}","IsDeferred":false},{"Name":"parseInt","Code":"for (var i = 0; i \u003C count; i\u002B\u002B) {\r\n parseInt(12.34 * 10);\r\n parseInt(567.89 * 10);\r\n}","IsDeferred":false},{"Name":"parseInt, 10","Code":"for (var i = 0; i \u003C count; i\u002B\u002B) {\r\n parseInt(12.34 * 10, 10);\r\n parseInt(567.89 * 10, 10);\r\n}","IsDeferred":false}]}