Script Preparation code:
Tests:
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: one year 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
(Math.round(*1000000)/1000000)
1782.9M/s
Math.floor( * 1000000)
1775.1M/s
toFixed(6)
23.9M/s
toPrecision(6).toString()
18.1M/s
View exact numbers
Test name Executions per second
(Math.round(*1000000)/1000000) 1,782,905,216 Ops/sec
Math.floor( * 1000000) 1,775,076,096 Ops/sec
toFixed(6) 23,949,510 Ops/sec
toPrecision(6).toString() 18,116,802 Ops/sec