Run details:
Mozilla/5.0 (Android 15; Mobile; rv:137.0) Gecko/137.0 Firefox/137.0
Firefox Mobile 137
Android
Mobile
one year ago
(Math.round(*10000)/10000).toString()
1120.8M/s
toFixed(4)
14.7M/s
toPrecision(4).toString()
11.3M/s
View exact numbers
Test name Executions per second
(Math.round(*10000)/10000).toString() 1,120,803,456 Ops/sec
toFixed(4) 14,725,543 Ops/sec
toPrecision(4).toString() 11,275,817 Ops/sec
Script Preparation code:
Tests: