HTML Preparation code:
Script Preparation code:
Tests:
  • Math.floor(test)

  • Math.floor(test) + 1

  • ~~test

  • ~~test + 1

  • Math.ceil(test)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.floor(test)
    Math.floor(test) + 1
    ~~test
    ~~test + 1
    Math.ceil(test)

    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: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110 on Windows
View result in a separate tab
Test name Executions per second
Math.floor(test) 4512597.0 Ops/sec
Math.floor(test) + 1 4727551.0 Ops/sec
~~test 13799350.0 Ops/sec
~~test + 1 13742780.0 Ops/sec
Math.ceil(test) 4604480.0 Ops/sec