Script Preparation code:
Tests:
  • toFixed(2)

  • Math.floor

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    toFixed(2)
    Math.floor

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119 on Fedora
View result in a separate tab
Test name Executions per second
toFixed(2) 723819.1 Ops/sec
Math.floor 8340625.0 Ops/sec