Run details:
Mozilla/5.0 (Linux; Android 8.1.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36
Chrome Mobile 77
Android 8.1.0
Mobile
5 years ago
Test name Executions per second
toFixed(4) 187975.7 Ops/sec
(Math.round(*10000)/10000).toString() 418090.5 Ops/sec
Script Preparation code:
Tests:
  • toFixed(4)

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


;