Script Preparation code:
Tests:
  • toFixed()

  • Math.round(someFloat).toString()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    toFixed()
    Math.round(someFloat).toString()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 days ago)
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 on Linux
View result in a separate tab
Test name Executions per second
toFixed() 4233266.0 Ops/sec
Math.round(someFloat).toString() 5335279.0 Ops/sec


;