Run details:
Mozilla/5.0 (Android 10; Mobile; rv:86.0) Gecko/86.0 Firefox/86.0
Firefox Mobile 86
Android
Mobile
3 years ago
Test name Executions per second
toFixed(4) 8409327.0 Ops/sec
toPrecision(4).toString() 8813731.0 Ops/sec
(Math.round(*10000)/10000).toString() 546150016.0 Ops/sec
Script Preparation code:
Tests:
  • toFixed(4)

  • toPrecision(4).toString()

  • (Math.round(*10000)/10000).toString()


;