Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 OPR/114.0.0.0
Opera 114
Linux
Desktop
one month ago
Test name Executions per second
toFixed() 4233266.0 Ops/sec
Math.round(someFloat).toString() 5335279.0 Ops/sec
Script Preparation code:
Tests:
  • toFixed()

  • Math.round(someFloat).toString()