Script Preparation code:
Tests:
  • toFixed(6)

  • toPrecision(6).toString()

  • (Math.round(*1000000)/1000000)

  • Math.floor( * 1000000)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    toFixed(6)
    toPrecision(6).toString()
    (Math.round(*1000000)/1000000)
    Math.floor( * 1000000)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0
Firefox 127 on Windows
View result in a separate tab
Test name Executions per second
toFixed(6) 23949510.0 Ops/sec
toPrecision(6).toString() 18116802.0 Ops/sec
(Math.round(*1000000)/1000000) 1782905216.0 Ops/sec
Math.floor( * 1000000) 1775076096.0 Ops/sec