Run details:
Mozilla/5.0 (Linux; Android 10; RMX1911) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.85 Mobile Safari/537.36
Chrome Mobile 94
Android
Mobile
2 years ago
Test name Executions per second
toFixed 2 decimals 1199869.5 Ops/sec
toPrecision 2 decimals 1207311.1 Ops/sec
Math.round 2 decimals 703487.0 Ops/sec
Script Preparation code:
Tests:
  • toFixed 2 decimals

  • toPrecision 2 decimals

  • Math.round 2 decimals